home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GCC258UD.LHA / gcc / GCC-Install < prev    next >
Encoding:
Text File  |  1994-02-08  |  3.8 KB  |  164 lines

  1. (transcript "Installing Gcc v2.5.6 for AmigaDOS...")
  2.  
  3. ; ==== Set default destination for gcc package
  4.  
  5. ;(set @default-dest "SYS:GCC") was buggy for end message: GCC can be found ..
  6.  
  7. ; ==== Choose path where gcc tree is stored
  8.  
  9. (set gccdest
  10.   (askdir
  11.     (prompt "Please select directory where you unpacked GCC.")
  12.     (help @askdir-help)
  13.     (default "SYS:GCC")
  14.   )
  15. )
  16.  
  17. (set @default-dest gccdest)
  18.  
  19. (makeassign "GCC" gccdest)
  20.  
  21. (complete 5)
  22.  
  23. ; ==== Copy ixemul.library
  24.  
  25. (copylib
  26.   (help @copylib-help)
  27.   (prompt "Installing ixemul.library...")
  28.   (confirm)
  29.   (source "GCC:Libs/ixemul.library")
  30.   (dest
  31.    (set ixemuldest
  32.      (askdir
  33.        (prompt "Please select a place for \"ixemul.library\".")
  34.        (help @askdir-help)
  35.        (default "LIBS:")
  36.      )
  37.         )
  38.   )
  39. )
  40.  
  41. (complete 10)
  42.  
  43. ; ==== Copy ixpipe-handler
  44.  
  45. (copyfiles
  46.   (help @copylib-help)
  47.   (prompt "Installing ixpipe-handler...")
  48.   (source "GCC:ixpipe/ixpipe-handler")
  49.   (confirm)
  50.   (dest
  51.    (set ixpipedest
  52.      (askdir
  53.        (prompt "Please select a place for \"ixpipe-handler\".")
  54.        (help @askdir-help)
  55.        (default "L:")
  56.      )
  57.         )
  58.   )
  59. )
  60.  
  61. (complete 20)
  62.  
  63. ; ==== Get Kickstart version number
  64.  
  65. (set vernum (getversion "exec.library" (resident)))
  66. (set ver (/ vernum 65536))
  67.  
  68. (if (< ver 38)
  69. (
  70.   (textfile
  71.     (help "This operation will preserve your existing Mountlist.")
  72.     (prompt "You are not running Kickstart 2.1 or higher, adding to Mountlist.")
  73.     (confirm)
  74.     (dest "RAM:phbtmp")
  75.     (include "DEVS:Mountlist")
  76.     (include "GCC:ixpipe/Mountlist")
  77.   )
  78.   (run "copy RAM:phbtmp DEVS:Mountlist >T:result"
  79.     (prompt "Running 'copy'")
  80.     (help "This will only work from the CLI!")
  81.   )
  82. )
  83. (
  84.   (copyfiles
  85.     (help @copylib-help)
  86.     (prompt "Installing ixpipe Dosdriver ...")
  87.     (source "GCC:ixpipe/IXPIPE")
  88.     (dest "DEVS:dosdrivers")
  89.   )
  90.   (copyfiles
  91.     (help @copylib-help)
  92.     (prompt "Installing ixpipe Dosdriver icon ...")
  93.     (source "GCC:ixpipe/IXPIPE.info")
  94.     (dest "DEVS:dosdrivers")
  95.   )
  96. )
  97. )
  98.  
  99.  
  100. ; ==== Copy ENV strings into ENVARC: ONLY when we're running 2.0 or more
  101.  
  102. (if (>= ver 37)
  103.   (copyfiles
  104.     (help @copylib-help)
  105.     (prompt "Installing variables into ENVARC:...")
  106.     (confirm)
  107.     (source "GCC:envarc")
  108.     (all)
  109.     (dest "ENVARC:")
  110.   )
  111. )
  112.  
  113. (complete 50)
  114.  
  115. (startup "Gcc-AmigaDOS"
  116.   (help @startup-help)
  117.   (prompt "Ready to add necessary Assigns to user-startup")
  118.   (command "Assign GNU: " gccdest)
  119.   (command "\nAssign GCC:  GNU:")
  120.   (command "\nAssign UNIX: GCC:")
  121.   (command "\nAssign USR:  GCC:")
  122.   (command "\nAssign lib:  USR:lib")
  123.   (command "\nAssign bin:  USR:bin")
  124.   (command "\nAssign etc:  UNIX:etc")
  125.   (command "\nAssign dev:  UNIX:dev")
  126.   (command "\nAssign S: GCC:S ADD")
  127.   (command "\nAssign LOCAL:   USR:")
  128.   (command "\nSet ESHELL bin:ksh")
  129.   (command "\nPATH USR:bin add")
  130.   (command "\nAssign tmp:  t:")
  131.   (command (if (NOT (= "LIBS:" ixemuldest))
  132.              "\nAssign LIBS:  "
  133.            ))
  134.   (command (if (NOT (= "LIBS:" ixemuldest))
  135.              ixemuldest
  136.            ))
  137.   (command (if (NOT (= "LIBS:" ixemuldest))
  138.              " ADD"
  139.            ))
  140.   (command (if (NOT (= "L:" ixpipedest))
  141.              "\nAssign L:  "
  142.            ))
  143.   (command (if (NOT (= "L:" ixpipedest))
  144.              ixpipedest
  145.            ))
  146.   (command (if (NOT (= "L:" ixpipedest))
  147.              " ADD"
  148.            ))
  149.   (command (if (< ver 38)
  150.               "\n;#This is because you are not running OS 2.1 or more\nMount IXPIPE:"
  151.            ))
  152.   (command (if (< ver 37)
  153.               "\n;#This is because you are not running OS 2.0 or more\nSetenv TERM amiga"
  154.            ))
  155.   (command (if (< ver 37)
  156.               "\nSetenv LESSCHARSET topaz"
  157.            ))
  158. )
  159.  
  160. (message "Now you have to reboot to activate new environment.\n"
  161.          "In case of errors, problems, whatever, please contact me at:"
  162.          "\n\nemail: phb@colombo.telesys-innov.fr"
  163.          "\nfidonet: 2:320/104.21 Ramses The Amiga Flying BBS")
  164.