diff --git a/applications/instantfpc/README.txt b/applications/instantfpc/README.txt index ef740f39d..a3ac56923 100644 --- a/applications/instantfpc/README.txt +++ b/applications/instantfpc/README.txt @@ -1,26 +1,5 @@ -instantfpc -========== +Instantfpc is now part of fpc 2.5.1. -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. +See here for more information: +http://wiki.freepascal.org/InstantFPC diff --git a/applications/instantfpc/examples/exitcode.pas b/applications/instantfpc/examples/exitcode.pas index a85bdf73d..b61feb119 100755 --- a/applications/instantfpc/examples/exitcode.pas +++ b/applications/instantfpc/examples/exitcode.pas @@ -1,10 +1,9 @@ #!/usr/bin/env instantfpc - {$mode objfpc}{$H+} - -uses SysUtils; - -var i: integer; +uses + SysUtils; +var + i: integer; begin i:=StrToInt(ParamStr(1)); writeln('exit code: ',i); diff --git a/applications/instantfpc/examples/helloworld.pas b/applications/instantfpc/examples/helloworld.pas index df9eea91b..93f3fbef3 100755 --- a/applications/instantfpc/examples/helloworld.pas +++ b/applications/instantfpc/examples/helloworld.pas @@ -1,4 +1,4 @@ #!/usr/bin/env instantfpc begin - writeln('Hello world 2'); + writeln('Hello world!'); end. diff --git a/applications/instantfpc/examples/writeparameters.pas b/applications/instantfpc/examples/writeparameters.pas index f59bad00f..7dfd77a2f 100755 --- a/applications/instantfpc/examples/writeparameters.pas +++ b/applications/instantfpc/examples/writeparameters.pas @@ -1,4 +1,5 @@ #!/usr/bin/env instantfpc +{$mode objfpc}{$H+} var i: Integer; begin