2014-12-29 23:11:35 +01:00
|
|
|
{$ifndef ALLPACKAGES}
|
2012-09-08 23:42:19 +02:00
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
{$define allpackages}
|
2014-12-29 23:11:35 +01:00
|
|
|
{$define no_parent}
|
2012-09-08 23:42:19 +02:00
|
|
|
program fpmake;
|
|
|
|
|
|
|
|
uses fpmkunit, sysutils, Classes;
|
2014-12-29 23:11:35 +01:00
|
|
|
{$endif ALLPACKAGES}
|
2012-09-08 23:42:19 +02:00
|
|
|
(*
|
|
|
|
|
|
|
|
The include files are generated with the following commands:
|
|
|
|
|
|
|
|
rm fpmake_proc.inc fpmake_add.inc ; /bin/ls -1 */fpmake.pp| while read file; do cleanedname=`dirname $file | sed -e 's+-+_+g'` ; if ! `grep -i "^procedure add_$cleanedname" $file >/dev/null` ; then printf 'procedure add_%s;\nbegin\n with Installer do\n{$include %s}\nend;\n\n' $cleanedname $file >> fpmake_proc.inc; else printf '{$include %s}\n\n' $file >> fpmake_proc.inc; fi; echo " add_$cleanedname;" >> fpmake_add.inc; done
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
|
|
|
{$include fpmake_proc.inc}
|
|
|
|
|
2014-12-29 23:11:35 +01:00
|
|
|
procedure add_packages(const ADirectory: string);
|
|
|
|
|
2012-09-08 23:42:19 +02:00
|
|
|
begin
|
|
|
|
{$include fpmake_add.inc}
|
2014-12-29 23:11:35 +01:00
|
|
|
end;
|
2012-09-08 23:42:19 +02:00
|
|
|
|
2014-12-29 23:11:35 +01:00
|
|
|
{$ifdef no_parent}
|
|
|
|
begin
|
|
|
|
add_packages('');
|
2014-12-27 12:57:58 +01:00
|
|
|
Installer.Run;
|
2012-09-08 23:42:19 +02:00
|
|
|
end.
|
2014-12-29 23:11:35 +01:00
|
|
|
{$endif no_parent}
|
|
|
|
|