mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 08:19:36 +01:00 
			
		
		
		
	the top-level fpmake.pp
  * replaced commands to regenerate fpmake*.inc in top level fpmake.pp with
    ones that don't depend on GNU awk, and which automatically recognize
    nested fpmake files that contain their own add_XXX procedure and hence
    must not get a wrapper
  * regenerated fpmake*.inc so that fpindexer and opengles are now also
    built, and dblib/fpmake.pp does not get a wrapper
git-svn-id: trunk@20625 -
		
	
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			895 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			895 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{$mode objfpc}{$H+}
 | 
						|
{$define allpackages}
 | 
						|
program fpmake;
 | 
						|
 | 
						|
uses fpmkunit, sysutils, Classes;
 | 
						|
 | 
						|
Var
 | 
						|
  TBuild,T : TTarget;
 | 
						|
  PBuild,P : TPackage;
 | 
						|
  D : TDependency;
 | 
						|
  I : Integer;
 | 
						|
 | 
						|
(*
 | 
						|
 | 
						|
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}
 | 
						|
 | 
						|
begin
 | 
						|
{$include fpmake_add.inc}
 | 
						|
 | 
						|
  With Installer do
 | 
						|
    begin
 | 
						|
      // Create fpc-all package
 | 
						|
      PBuild:=AddPackage('fpc-all');
 | 
						|
      PBuild.Version:='2.7.1';
 | 
						|
      Run;
 | 
						|
    end;
 | 
						|
end.
 |