"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "fpcbuild-2.2.2/install/amiga/installfpc" of archive fpcbuild-2.2.2.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 ; Installation script for Amiga Free Pascal compiler
    2 ; This will install the compiler into work:pp/
    3 Echo "This will install the Free Pascal Compiler version 1.0.8"
    4 Echo "in the path <user>/pp/"
    5 Ask Continue?
    6 if WARN
    7   SKIP ContinueInstall
    8 ELSE
    9   SKIP End
   10 ENDIF
   11 ;***************************************************
   12 ; Get base directory for install
   13 ;***************************************************
   14 LAB ContinueInstall
   15 ; Make the user request the directory where to install
   16 REQUESTFILE >env:tmptxt DRAWERSONLY TITLE "Location of FPC installation"
   17 ; If no drawer/dir selected, exit
   18 IF WARN
   19   SKIP End
   20 ENDIF  
   21 ; Get the directory where we started the install
   22 CD >env:tmpdir
   23 ; Go into the destination directory
   24 CD $tmptxt
   25 FAILAT 21
   26 MAKEDIR pp
   27 CD pp
   28 ECHO >env:tmptxt `CD`/
   29 ; Return to old directory
   30 ; Return to old version
   31 FAILAT 10
   32 CD $tmpdir
   33 ;***************************************************
   34 ; Verify if this is what the user wants
   35 ;***************************************************
   36 ECHO "Free Pascal will be installed in $tmptxt"
   37 Ask Continue?
   38 if NOT WARN
   39   SKIP End
   40 ENDIF
   41 ;***************************************************
   42 ; Install the basic stuff
   43 ;***************************************************
   44 lha x baseami.lha $tmptxt
   45 lha x asldami.lha $tmptxt
   46 ;***************************************************
   47 ; Install the amiga units
   48 ;***************************************************
   49 ASK "Do you wish to install the Amiga units?"
   50 IF WARN
   51   lha x amunits.lha $tmptxt
   52   SKIP InstallDocs
   53 ELSE
   54   SKIP InstallDocs
   55 ENDIF
   56 ;***************************************************
   57 ; Install the Documentation
   58 ;***************************************************
   59 LAB InstallDocs
   60 ASK "Do you wish to install the Documentation (in HTML format)?"
   61 IF WARN
   62   lha x doc-html.lha $tmptxt
   63   SKIP InstallDemos
   64 ELSE
   65   SKIP InstallDemos
   66 ENDIF
   67 ;***************************************************
   68 ; Install the Demos
   69 ;***************************************************
   70 LAB InstallDemos
   71 ASK "Do you wish to install the Demos?"
   72 IF WARN
   73   lha x demos.lha $tmptxt
   74   SKIP InstallSource
   75 ELSE
   76   SKIP InstallSource
   77 ENDIF
   78 ;***************************************************
   79 ; Source code installation
   80 ;***************************************************
   81 LAB InstallSource
   82 ASK "Do you wish to install the Source code?"
   83 IF WARN
   84   lha x compilersrc.lha $tmptxt
   85   lha x rtlsrc.lha $tmptxt
   86   lha x amunitssrc.lha $tmptxt
   87   SKIP InstallFinished
   88 ELSE
   89   SKIP InstallFinished
   90 ENDIF
   91 ;***************************************************
   92 ; Information
   93 ;***************************************************
   94 LAB InstallFinished
   95 ECHO "Your shell-startup/user-startup script should be updated: "
   96 ECHO "1) To allocate more stack space for processes (e.g : STACK 256000)"
   97 ECHO "2) To Assign your FPC path to libs (e.g : Assign LIBS: work:pp/bin/amiga ADD)"
   98 ECHO "3) To add FPC to your executable path (e.g : PATH work:pp/bin/amiga ADD)"
   99 ASK "Do you wish to update the shell-startup automatically?"
  100 IF WARN 
  101     ECHO "; Added by Free Pascal Compiler installation " >> S:shell-startup
  102 	ECHO "Stack 256000" >> S:shell-startup
  103 	CD $tmptxt
  104     ECHO >env:tmptxt `CD`/bin/amiga
  105     ECHO "ASSIGN LIBS: $tmptxt ADD" >> S:shell-startup
  106     ECHO "PATH $tmptxt ADD" >> S:shell-startup
  107     CD $tmpdir
  108 ENDIF
  109 ECHO "Enjoy! (You will ll need to restart your shell so changes take effect)"
  110 copy fpc.cfg to $tmptxt clone 
  111 
  112 
  113 ; End of script, don't do anything else
  114 
  115 LAB END