disable the unrecognized nls and x flags
[AROS-Contrib.git] / scalos / InstallAROS / InstallAROS
blob4fbb1cc16cf07b19f58ae37b73d6f3eddda267a3
1 ; AROS-DOS script for installing Scalos on AROS
3 ; $VER: InstallAROS 1.0 (26.12.2011)
5 Set target=""
6 Set subdir="Scalos"
7 Set target=`RequestFile DRAWER Extras: TITLE "Choose directory for Scalos" SAVEMODE DRAWERSONLY`
8 IF "$target" EQ ""
9     RequestChoice "Information" "Script cancelled" "OK"
10     Quit
11 EndIf
13 Set target="$target$subdir"
15 If Exists "$target"
16     Set result=`RequestChoice "Warning" "Directory $target already exists.*NIt will be deleted if you continue!" "Continue|Cancel"`
17     If $result EQ 0
18         RequestChoice "Information" "Script cancelled" "OK" >NIL:
19         Quit
20     Else
21         Delete "$target" ALL
22     EndIf
23 EndIf
26 MakeDir "$target" ALL
27 Copy Scalos Scalos.info History readme.txt LEGAL "$target"
28 Copy IconDatatypes "$target/IconDatatypes" ALL
29 Copy Libs "$target/Libs" ALL
30 Copy Modules "$target/Modules" ALL
31 Copy Plugins "$target/Plugins" ALL
32 Copy Prefs "$target/Prefs" ALL
33 Copy S "$target/S" ALL
34 Copy Themes "$target/Themes" ALL
35 Copy Tools "$target/Tools" ALL
38 ; Copy icons
39 Copy Envarc:SYS/def_Drawer.info "$target//Scalos.info"
41 Copy Envarc:SYS/def_Drawer.info "$target/Modules.info"
42 Copy Envarc:SYS/def_Drawer.info "$target/Prefs.info"
43 Copy Envarc:SYS/def_Drawer.info "$target/Tools.info"
45 Copy Envarc:SYS/def_Tool.info "$target/Modules/Delete.module.info"
46 Copy Envarc:SYS/def_Tool.info "$target/Modules/Empty_Trashcan.module.info"
47 Copy Envarc:SYS/def_Tool.info "$target/Modules/Exchange.module.info"
48 Copy Envarc:SYS/def_Tool.info "$target/Modules/Execute_Command.module.info"
49 Copy Envarc:SYS/def_Tool.info "$target/Modules/Find.module.info"
50 Copy Envarc:SYS/def_Tool.info "$target/Modules/Format_Disk.module.info"
51 Copy Envarc:SYS/def_Tool.info "$target/Modules/IconProperties.module.info"
52 Copy Envarc:SYS/def_Tool.info "$target/Modules/Information.module.info"
53 Copy Envarc:SYS/def_Tool.info "$target/Modules/NewDrawer.module.info"
54 Copy Envarc:SYS/def_Tool.info "$target/Modules/Rename.module.info"
55 Copy Envarc:SYS/def_Tool.info "$target/Modules/Updater.module.info"
56 Copy Envarc:SYS/def_Tool.info "$target/Modules/WindowProperties.module.info"
58 Copy Envarc:SYS/def_Tool.info "$target/Prefs/Scalos_FileTypes.info"
59 Copy Envarc:SYS/def_Tool.info "$target/Prefs/Scalos_Menu.info"
60 Copy Envarc:SYS/def_Tool.info "$target/Prefs/Scalos_Palette.info"
61 Copy Envarc:SYS/def_Tool.info "$target/Prefs/Scalos_Pattern.info"
62 Copy Envarc:SYS/def_Tool.info "$target/Prefs/Scalos_Prefs.info"
65 ; Copy catalogs
66 Set result=`RequestChoice "Request" "Do you want to copy the catalogs?" "Yes|No"`
67 If $result NOT EQ 0
68     Copy Catalogs Locale:Catalogs ALL
69 EndIf
72 ; Copy Env
73 If Not Exists ENVARC:Scalos
74     MakeDir ENVARC:Scalos
75 EndIf
77 Copy Env-Archive/deficons.prefs ENVARC:
78 Copy Env-Archive/Scalos/icandy ENVARC:Scalos
79 Copy Env-Archive/Scalos/Palette13.prefs ENVARC:Scalos
80 Copy Env-Archive/Scalos/Pattern.prefs ENVARC:Scalos
81 Copy Env-Archive/Scalos/Persist.prefs ENVARC:Scalos
82 Copy Env-Archive/Scalos/scalos.prefs ENVARC:Scalos
84 Set result=`RequestChoice "Request" "In what language do you want to install the environment?" "German|French|English"`
85 If $result EQ 1
86     Copy Env-Archive/Scalos/Deutsch/#? ENVARC:Scalos ALL
87 Else
88     If $result EQ 2
89         Copy Env-Archive/Scalos/Français/#? ENVARC:Scalos ALL
90     Else
91         Copy Env-Archive/Scalos/English/#? ENVARC:Scalos ALL
92     Endif
93 EndIf
96 ; Create package variable
97 Echo "$target" >ENVARC:SYS/Packages/Scalos
100 RequestChoice "Information" "Done. After a reset you should be able to start Scalos." "OK" >NIL: