home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 135 / af135a.adf / AmiCheck.lzx / AmiCheck / Install_Libs / Install.IconX next >
Text File  |  2012-02-16  |  5KB  |  182 lines

  1. ; $VER: Install.IconX 37.3 (29.10.94)
  2. ;
  3. ; This script installs the GUIFront library and preferences editor on your
  4. ; hard drive.  
  5. ;
  6. ; extended by Doug Dyer to also install the easyrexx utility.
  7. ; This is pulled almost 100% from Michael Berg's GUIFront install script
  8. ; - Doug Dyer
  9.  
  10. FailAt 21
  11.  
  12. Echo "amiCheck installation script for use with IconX"
  13. Echo ""
  14.  
  15. ; *** copy amicheck application
  16. ;Echo "Installing amiCheck main program:"
  17.  
  18. ;SetEnv DoCopyAC YES
  19. ;    Echo "
  20. ;[0m" NOLINE
  21. ;    Ask "        Do you want to install the main program?"
  22. ;    If NOT WARN
  23. ;        SetEnv DoCopyAC NO
  24. ;    EndIf
  25. ;EndIf
  26.  
  27. ;If $DoCopyAC EQ "YES"
  28. ;    Echo "        Which CPU version of the program do you want to install? "
  29. ;Lab SelectACVersion
  30. ;    Echo "            Enter '000' for the 68000 version"
  31. ;    Echo NOLINE "            Enter '020' for the 68020 version: "
  32. ;    /GetLine >ENV:ACInstallVersion
  33. ;    If $ACInstallVersion EQ "000"
  34. ;        SetEnv SourceFile /storage/amiCheck.68000
  35. ;    Else
  36. ;        SetEnv SourceFile /libs/amiCheck.68020
  37. ;    EndIf
  38. ;    If NOT EXISTS $SourceFile
  39. ;        Echo "            Illegal selection. Please re-select*N"
  40. ;        Skip BACK SelectACVersion
  41. ;    EndIf
  42.  
  43. ;   Echo "        Copying amiCheck from storage ..."
  44. ;   Copy $SourceFile /amiCheck QUIET
  45. ;   Copy $SourceFile.info /amiCheck.info QUIET
  46.  
  47. ;Else
  48. ;    Echo "        Skipped"
  49. ;EndIf
  50.  
  51. Avail >NIL: FLUSH
  52.  
  53. Echo ""
  54.  
  55. ; *** install easyrexx.library
  56. Echo "Installing library:"
  57.  
  58. Echo "    easyrexx.library"
  59.  
  60. SetEnv DoCopyLib YES
  61.  
  62. Version >NIL: easyrexx.library 2 0
  63. If NOT WARN
  64.     Echo "        You already have: " NOLINE
  65.     Version easyrexx.library
  66.     Echo "" NOLINE
  67.     Ask "        Do you want to install version 2.0 of easyrexx.library?"
  68.     If NOT WARN
  69.         SetEnv DoCopyLib NO
  70.     EndIf
  71. EndIf
  72.  
  73. If $DoCopyLib EQ "YES"
  74.     SetEnv SourceFile /libs/easyrexx.library
  75.     Echo "        Copying easyrexx.library to your LIBS: ..."
  76.     Copy $SourceFile LIBS:easyrexx.library QUIET
  77. Else
  78.     Echo "        Skipped"
  79. EndIf
  80.  
  81. Avail >NIL: FLUSH
  82. Echo ""
  83.  
  84. ; *** install GUIFront (verbatim Michel Berg's original script)
  85. Echo "Installing library:"
  86.  
  87. Echo "    guifront.library"
  88.  
  89. SetEnv DoCopyLib YES
  90.  
  91. Version >NIL: guifront.library 38 1
  92. If NOT WARN
  93.     Echo "        You already have: " NOLINE
  94.     Version guifront.library
  95.     Echo "" NOLINE
  96.     Ask "        Do you want to install version 38.1 of guifront.library?"
  97.     If NOT WARN
  98.         SetEnv DoCopyLib NO
  99.     EndIf
  100. EndIf
  101.  
  102.  
  103. If $DoCopyLib EQ "YES"
  104.     Echo "        Which CPU version of the library do you want to install? "
  105. Lab SelectLibVersion
  106.     Echo "            Enter '000' for the 68000 version"
  107.     Echo NOLINE "            Enter '020' for the 68020 version: "
  108.     /GetLine >ENV:GFLibInstallVersion
  109.     If $GFLibInstallVersion EQ "000"
  110.         SetEnv SourceFile /libs/guifront.library
  111.     Else
  112.         SetEnv SourceFile /libs/guifront.library.$GFLibInstallVersion
  113.     EndIf
  114.     If NOT EXISTS $SourceFile
  115.         Echo "            Illegal selection. Please re-select*N"
  116.         Skip BACK SelectLibVersion
  117.     EndIf
  118.  
  119.     Echo "        Copying guifront.library to your LIBS: ..."
  120.     Copy $SourceFile LIBS:guifront.library QUIET
  121. Else
  122.     Echo "        Skipped"
  123. EndIf
  124.  
  125. Avail >NIL: FLUSH
  126.  
  127. Echo ""
  128.  
  129. If EXISTS Locale:Catalogs
  130.     Echo "Do you wish to install the catalog files for the GUIFront"
  131.     Echo "preferences editor?"
  132.     Ask  "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
  133.     If WARN
  134.         Copy >NIL: Locale Locale: All
  135.         Echo "Catalogs installed"
  136.     EndIf
  137. Else
  138.     Echo "Catalog files not installed -- no Locale directory found"
  139. EndIf
  140.  
  141. If EXISTS SYS:Prefs
  142.     SetEnv TargetDir Sys:Prefs/
  143. Else
  144.     SetEnv TargetDir Sys:
  145. Endif
  146.  
  147. Echo "*NInstalling GUIFront preferences editor..."
  148.  
  149. Lab SelectDir
  150.  
  151. Ask "    Install in '$TargetDir'? [y/n]:"
  152. If WARN
  153.     Echo "        Which version do you wish to install?"
  154. Lab SelectVersion
  155.     Echo "          Enter '000' for the 68000 version"
  156.     Echo NOLINE "          Enter '020' for the 68020 version: "
  157.     /GetLine >ENV:GFInstallVersion
  158.     If $GFInstallVersion EQ "000"
  159.         SetEnv SourceFile /Prefs/GUIFront
  160.     Else
  161.         SetEnv SourceFile /Prefs/GUIFront.$GFInstallVersion
  162.     EndIf
  163.     If NOT EXISTS $SourceFile
  164.         Echo "          Illegal selection. Please re-select*N"
  165.         Skip BACK SelectVersion
  166.     EndIf
  167.  
  168.     Echo "        Copying preferences editor to '"$TargetDir"'..."
  169.     Copy $SourceFile $TargetDir QUIET
  170.     Copy $SourceFile.info $TargetDir QUIET
  171. Else
  172.     Echo NOLINE "    Enter other path, QUIT to skip installation: "
  173.     /GetLine >ENV:TargetDir
  174.     If NOT $TargetDir EQ "QUIT"
  175.         Skip BACK SelectDir
  176.     Else
  177.         Echo "    Installation skipped..."
  178.     EndIf
  179. EndIf
  180.  
  181. Echo "*NInstallation complete. You may close the window now."
  182.