mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:08:15 +02:00
![]() U utils/instantfpc/instantfpc.pas --- Recording mergeinfo for merge of r43026 into '.': U . --- Merging r43087 into '.': U packages/hash/src/hmac.pp --- Recording mergeinfo for merge of r43087 into '.': G . --- Merging r43091 into '.': U packages/winunits-base/src/winhttp.pp --- Recording mergeinfo for merge of r43091 into '.': G . --- Merging r43095 into '.': G packages/winunits-base/src/winhttp.pp --- Recording mergeinfo for merge of r43095 into '.': G . --- Merging r43097 into '.': U rtl/unix/dl.pp --- Recording mergeinfo for merge of r43097 into '.': G . --- Merging r43098 into '.': G packages/winunits-base/src/winhttp.pp --- Recording mergeinfo for merge of r43098 into '.': G . --- Merging r43117 into '.': U packages/chm/src/chmwriter.pas --- Recording mergeinfo for merge of r43117 into '.': G . # revisions: 43026,43087,43091,43095,43097,43098,43117 git-svn-id: branches/fixes_3_2@43172 - |
||
---|---|---|
.. | ||
examples | ||
fpmake.pp | ||
instantfpc.lpi | ||
instantfpc.pas | ||
instantfptools.pas | ||
Makefile | ||
Makefile.fpc | ||
Makefile.fpc.fpcmake | ||
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.