README.txt 631 B

1234567891011121314151617181920212223242526
  1. instantfpc
  2. ==========
  3. This tool allows to execute pascal programs as unix scripts.
  4. A unix script starts with a shebang #! and the program to execute. For example
  5. #!/usr/bin/env instantfpc
  6. begin
  7. writeln('It works');
  8. end.
  9. If you save the above file as test.pas and set the execute permission
  10. (chmod a+x) you can execute the script simply with
  11. ./test.pas
  12. Installation
  13. ============
  14. 1. Compile instantfpc.lpi using lazarus, lazbuild or via "fpc instantfpc.lpr"
  15. 2. Put the executable "instantfpc" in PATH, for example into
  16. /usr/bin/instantfpc or ~/bin/instantfpc.
  17. That's all.
  18. Now you can execute pascal programs as scripts.