fpc/utils/instantfpc
Mattias Gaertner 1e48781694 instantfpc: fixed showing compiler error
git-svn-id: trunk@25340 -
2013-08-23 13:47:07 +00:00
..
examples * Removed executable flag from source files. 2011-12-19 17:40:02 +00:00
fpmake.pp * Handle the location of each package at run-time, not at compilation time 2013-06-02 17:55:23 +00:00
instantfpc.lpi instantfpc: version 1.3: compile into temporary directory to avoid clashes in parallel compilations 2013-08-09 12:02:15 +00:00
instantfpc.pas instantfpc: version 1.3: compile into temporary directory to avoid clashes in parallel compilations 2013-08-09 12:02:15 +00:00
instantfptools.pas instantfpc: fixed showing compiler error 2013-08-23 13:47:07 +00:00
Makefile * Switched utils to fpmake building 2013-05-26 19:05:11 +00:00
Makefile.fpc * Switched utils to fpmake building 2013-05-26 19:05:11 +00:00
Makefile.fpc.fpcmake * Switched utils to fpmake building 2013-05-26 19:05:11 +00:00
README.txt * Added instantfpc 2011-04-24 09:20:35 +00:00

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.