2
0

Install 892 B

1234567891011121314151617181920212223
  1. Confirm "This will install Free Pascal for MPW.¶n¶nDo you want to proceed ?"
  2. Set installerdir `Directory`
  3. Set destdir `GetFileName -wd -m 'Select where I should install the FreePascal folder' "{Boot}"`FreePascal:
  4. # Write startup script
  5. Echo "Set -e FPCDIR ¶'{destdir}¶'" > "{MPW}Startup Items:FPC Startup"
  6. Echo 'Set -e Commands "{Commands},{FPCDIR}bin:"' >> "{MPW}Startup Items:FPC Startup"
  7. # Copy files
  8. Set Exit 0
  9. Delete -y "{destdir}" ³ Dev:Null
  10. Set Exit 1
  11. NewFolder "{destdir}"
  12. Duplicate -y "{installerdir}Freepascal":Å "{destdir}"
  13. # Write configuration file
  14. Echo "# Configuration file for Free Pascal for MPW" > "{destdir}bin:fpc.cfg"
  15. Echo "-Fu¶'{destdir}units:rtl:¶'" >> "{destdir}bin:fpc.cfg"
  16. Echo "-l" >> "{destdir}bin:fpc.cfg"
  17. Echo "-vi" >> "{destdir}bin:fpc.cfg"
  18. Alert "The installation was successful. Please restart MPW.¶n¶nLicense information is located in the docs folder."