fpmake.pp 760 B

12345678910111213141516171819202122232425262728293031323334
  1. {$mode objfpc}{$H+}
  2. {$define allpackages}
  3. program fpmake;
  4. uses fpmkunit, sysutils, Classes;
  5. Var
  6. TBuild,T : TTarget;
  7. PBuild,P : TPackage;
  8. D : TDependency;
  9. I : Integer;
  10. (*
  11. The include files are generated with the following commands:
  12. /bin/ls -1 */fpmake.pp | awk -F '/' '/fpmake.pp/ { printf "procedure add_%s;\nbegin\n with Installer do\n{$include %s}\nend;\n\n",gensub("-","_","g",$1),$0; }' > fpmake_proc.inc
  13. /bin/ls -1 */fpmake.pp | awk -F '/' '/fpmake.pp/ { printf " add_%s;\n",gensub("-","_","g",$1); }' > fpmake_add.inc
  14. *)
  15. {$include fpmake_proc.inc}
  16. begin
  17. {$include fpmake_add.inc}
  18. With Installer do
  19. begin
  20. // Create fpc-all package
  21. PBuild:=AddPackage('fpc-all');
  22. PBuild.Version:='2.7.1';
  23. Run;
  24. end;
  25. end.