home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / System / EASys / EASys!_update_47x_to_481 / Install_update < prev    next >
Text File  |  2000-07-08  |  6KB  |  239 lines

  1. ; 000627 T.Neidhardt, ft112@fen-net.de, EasySystem
  2. ; AmigaShell script
  3. ; Script for update.
  4.  
  5. ;-------------------------------- variables
  6. failat 30
  7. stack 40000
  8.  
  9. set app EASys!
  10. set EASYSVER 4.8.1
  11.  
  12. ;-------------------------------- preparations
  13.  
  14. c:relabel RAM: RAM-Disk
  15. assign "RAM Disk:" RAM: ADD
  16. unalias lha
  17. unalias list
  18.  
  19. version >NIL: workbench.library 44
  20. IF warn
  21.  setenv osver 3.x
  22. ELSE
  23.  setenv osver 3.5
  24. ENDIF
  25.  
  26. ; Arq may cause heavy problems while installing on OS3.5:
  27. c/CLIExchange "Arq 1.83" KILL
  28. c/CLIExchange "Arq" KILL
  29.  
  30. assign iGuide: ""
  31. assign Install_C: c
  32.  
  33. ;--------------------------------
  34. LAB UPDATE
  35.  
  36. echo "*n*n Performing update..*n"
  37. Install_C:CLIExchange MultiNotify DISABLE
  38. Install_C:CLIExchange ToolManager KILL
  39. wait 2
  40.  
  41. delete >NIL: ENVARC:Flags QUIET
  42. delete >NIL: ENV:Flags QUIET
  43. makedir >NIL: ENVARC:Flags QUIET
  44. makedir >NIL: ENV:Flags QUIET
  45.  
  46. delete >NIL: ENVARC:Flags/Boot_Menu QUIET
  47. delete >NIL: ENV:Flags/Boot_Menu QUIET
  48. delete >NIL: SYS:StartSys/Profile/Flags/Boot_Menu QUIET
  49.  
  50. protect >NIL: ENVARC:ToolManager.prefs +wd
  51. protect >NIL: ENV:ToolManager.prefs +wd
  52. protect >NIL: EASys!:Config/ToolManager.prefs +wd
  53.  
  54. delete >NIL: EASys!:dock QUIET
  55. copy iGuide:EASys! SYS:EASys! CLONE ALL QUIET
  56. assign Dock: EASys!:Dock
  57. delete >NIL: SYS:Prefs/Dock#? FORCE ALL QUIET
  58.  
  59. if exists SYS:StartSys
  60.  copy iGuide:StartSys SYS:StartSys CLONE ALL QUIET
  61. endif
  62.  
  63. copy iGuide:SYS/#? SYS: CLONE ALL QUIET
  64.  
  65. ;--------------------------------
  66. echo "*n Finishing EASys! setup*n"
  67. delete >NIL: EASys!:Prefs/#?/GUI-SnapReqSizes.3 QUIET
  68.  
  69. if not exists SYS:EASys!/bin/ToolManager
  70.  if exists profile:wbstartup/ToolManager
  71.   delete SYS:StartSys/Profiles/#?/wbstartup/ToolManager#? FORCE QUIET
  72.  endif
  73.  
  74.  if exists profile:wbstartup/MultiNotify
  75.   delete SYS:StartSys/Profiles/#?/wbstartup/MultiNotify#? FORCE QUIET
  76.  endif
  77.  
  78.  
  79.  if exists SYS:Commodities/ToolManager
  80.   copy SYS:Commodities/ToolManager#? SYS:EASys!/bin CLONE QUIET
  81.   delete SYS:Commodities/ToolManager#? FORCE QUIET
  82.  endif
  83.  
  84.  if exists SYS:Tools/Commodities/ToolManager
  85.   copy SYS:Tools/Commodities/ToolManager#? SYS:EASys!/bin CLONE QUIET
  86.   delete SYS:Tools Commodities/ToolManager#? FORCE QUIET
  87.  endif
  88.  
  89.  if exists SYS:WBstartup/ToolManager
  90.   copy SYS:WBstartup/ToolManager#? SYS:EASys!/bin CLONE QUIET
  91.   delete SYS:WBstartup/ToolManager#? FORCE QUIET
  92.  endif
  93.  
  94.  if exists "SYS:WBstartup (enabled)/ToolManager"
  95.   copy "SYS:WBstartup (enabled)/ToolManager#?" SYS:EASys!/bin CLONE QUIET
  96.   delete "SYS:WBstartup (enabled)/ToolManager#?" FORCE QUIET
  97.  endif
  98. endif
  99.  
  100. if not exists SYS:EASys!/bin/MultiNotify
  101.  if exists SYS:Commodities/MultiNotify
  102.   copy SYS:Commodities/MultiNotify#? SYS:EASys!/bin CLONE QUIET
  103.   delete SYS:Commodities/MultiNotify#? FORCE QUIET
  104.  endif
  105.  
  106.  if exists SYS:Tools/Commodities/MultiNotify
  107.   copy SYS:Tools/Commodities/MultiNotify#? SYS:EASys!/bin CLONE QUIET
  108.   delete SYS:Tools Commodities/MultiNotify#? FORCE QUIET
  109.  endif
  110.  
  111.  if exists SYS:WBstartup/MultiNotify
  112.   copy SYS:WBstartup/MultiNotify#? SYS:EASys!/bin CLONE QUIET
  113.   delete SYS:WBstartup/MultiNotify#? FORCE QUIET
  114.  endif
  115.  
  116.  if exists "SYS:WBstartup (enabled)/MultiNotify"
  117.   copy "SYS:WBstartup (enabled)/MultiNotify#?" SYS:EASys!/bin CLONE QUIET
  118.   delete "SYS:WBstartup (enabled)/MultiNotify#?" FORCE QUIET
  119.  endif
  120. endif
  121.  
  122. copy EASys!:Config/ToolManager.prefs ENV: CLONE QUIET
  123. EASys!_bin:WBrun EASys!:Config/ToolManager.prefs
  124.  
  125. ;--------------------------------
  126. copy iGuide:Init/EASys! T: CLONE QUIET
  127. if exists ENV:EASys!
  128.   type iguide:Init/EASys!.ENV >>T:EASys!
  129. else
  130.   type iguide:Init/EASys!.HD >>T:EASys!
  131. endif
  132. type iguide:Init/EASys!.aliases >>T:EASys!
  133.  
  134. if exists SYS:StartSys
  135.  echo "*n Finishing ModAS setup..*n"
  136.  copy T:EASys! SYS:StartSys/c_Prepare CLONE QUIET
  137. else
  138.  echo "*n User-Startup..*n"
  139.  rx EASys!_rexx:remoteed.rexx T:EASys! ";BEGIN EASys" ";END EASys" S:User-startup
  140. endif
  141.  
  142. ;-------------------------------- corrections
  143. if exists SYS:StartSys
  144.  Install_C:ReplaceStrings SYS:StartSys/e_WB/4_StartShell "s:Shell-Startup.std" "AAASHELLSTARTUP"
  145.  Install_C:ReplaceStrings SYS:StartSys/e_WB/4_StartShell "AAASHELLST" "$SHELLST"
  146.  Install_C:ReplaceStrings SYS:StartSys/c_Prepare/DDconv "if exists ENV:Flags/StartVerbose" "if AAA{Flags/StartVerbose} eq 1" I
  147.  Install_C:ReplaceStrings SYS:StartSys/c_Prepare/DDconv "AAA{" "${" I
  148. endif
  149.  
  150. set dir SYS:
  151. if exists ${dir}SayTime
  152.  skip repsaytime
  153. endif
  154.  
  155. assign >NIL: Work: exists
  156. if not warn
  157.  set dir Work:
  158.  if exists ${dir}SayTime
  159.   skip repsaytime
  160.  endif
  161.  set dir Work:Tools/
  162.  if exists ${dir}SayTime
  163.   skip repsaytime
  164.  endif
  165.  set dir Work:Utilities/
  166.  if exists ${dir}SayTime
  167.   skip repsaytime
  168.  endif
  169.  set dir Work:Sound/
  170.  if exists ${dir}SayTime
  171.   skip repsaytime
  172.  endif
  173.  set dir Work:Audio/
  174.  if exists ${dir}SayTime
  175.   skip repsaytime
  176.  endif
  177. endif
  178.  
  179. set dir SYS:Tools/
  180. if exists ${dir}SayTime
  181.  skip repsaytime
  182. endif
  183. set dir SYS:Tools/Sound/
  184. if exists ${dir}SayTime
  185.  skip repsaytime
  186. endif
  187. set dir SYS:Sound/
  188. if exists ${dir}SayTime
  189.  skip repsaytime
  190. endif
  191. set dir SYS:Utilities/
  192. if exists ${dir}SayTime
  193.  skip repsaytime
  194. else
  195.  skip FINISH
  196. endif
  197.  
  198. LAB repsaytime
  199. Install_C:ReplaceStrings ${dir}SayTime/SageUhrzeit.rexx "Media:Sound/SayTime/Klang" "${dir}SayTime/Klang"
  200. Install_C:ReplaceStrings ${dir}SayTime/SageUhrzeit.rexx "Audio:bin/dsound" "AAA{RefTable/Sound-Voice}"
  201. Install_C:ReplaceStrings ${dir}SayTime/SageUhrzeit.rexx "AAA{" "${"
  202.  
  203. ;--------------------------------
  204. LAB FINISH
  205.  
  206. protect SYS:EASys!/Help/EASys!.version +rwd
  207. echo >SYS:EASys!/Help/EASys!.version "$EASYSVER"
  208. protect SYS:EASys!/Help/EASys!.version -wd
  209.  
  210. echo "*n*n Do you want an EASys! Workbench backdrop picture?*n"
  211. echo " [1] 1024x768 EASys! Dolphin"
  212. echo " [2]  800x600 EASys! Dolphin"
  213. echo " [3]  640x480 EASys! Dolphin"
  214. echo " [0] None."
  215. echo "*n ---> Please enter your choice: " NOLINE
  216. set >NIL: input ?
  217.  
  218. if $input eq 1
  219.  rx EASys!:Prefs/EasyPattern.rexx -wbpat SYS:Prefs/Presets/Patterns/EASys!/easys_1024x768.jpg
  220. endif
  221. if $input eq 2
  222.  rx EASys!:Prefs/EasyPattern.rexx -wbpat SYS:Prefs/Presets/Patterns/EASys!/easys_800x600.jpg
  223. endif
  224. if $input eq 3
  225.  rx EASys!:Prefs/EasyPattern.rexx -wbpat SYS:Prefs/Presets/Patterns/EASys!/easys_640x480.jpg
  226. endif
  227.  
  228. echo "*n .. update done. Please restart system."
  229. wait 10
  230. cd SYS:
  231. endcli
  232.  
  233. ;--------------------------------
  234. lab ERROR
  235. echo "*ec*n*e[1m Error installing $app:*e[0m*n*n The following files must be in this directory:*n*n $app.lha*n Install_Guide*n $app_iGuide.lha*n Lha*n*n*n Your version is*e[1m not up to date*e[0m or it is*e[1m incomplete*e[0m.*n*n Closing this window 1
  236. wait 15
  237. cd SYS:
  238.  
  239.