fpc/utils/instantfpc
2011-08-03 13:41:52 +00:00
..
examples instantfpc: example for mode directive 2011-07-09 08:40:27 +00:00
instantfpc.lpi
instantfpc.pas * Improved interpretation of shebang line under linux. Added --set-cache argument 2011-07-07 19:03:08 +00:00
instantfptools.pas instantfpc: fixed compilation for 2.4.4 2011-07-28 06:56:40 +00:00
Makefile * Regenned all makefiles before 2.6.x branching. 2011-08-03 13:41:52 +00:00
Makefile.fpc * Wrong file extensions 2011-04-24 09:21:50 +00:00
README.txt

instantfpc
==========

This tool allows to execute pascal programs as unix scripts.
A unix script starts with a shebang #! and the program to execute. For example

#!/usr/bin/env instantfpc
begin
  writeln('It works');
end.

If you save the above file as test.pas and set the execute permission
(chmod a+x) you can execute the script simply with
./test.pas


Installation
============

1. Compile instantfpc.lpi using lazarus, lazbuild or via "fpc instantfpc.lpr"
2. Put the executable "instantfpc" in PATH, for example into
   /usr/bin/instantfpc or ~/bin/instantfpc.

That's all.
Now you can execute pascal programs as scripts.