mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:09:17 +02:00
* Create the archives for multiple packages in the same location as the head fpmake.pp
git-svn-id: trunk@28915 -
This commit is contained in:
parent
ac85ad39df
commit
618f9745f8
@ -4735,6 +4735,9 @@ begin
|
||||
{$ifdef HAS_TAR_SUPPORT}
|
||||
if not assigned(FTarWriter) then
|
||||
begin
|
||||
If (APackage.Directory<>'') then
|
||||
EnterDir('');
|
||||
try
|
||||
FGZFileStream := TGZFileStream.create(Defaults.ZipPrefix + APackage.Name + MakeZipSuffix(Defaults.CPU,Defaults.OS) +'.tar.gz', gzopenwrite);
|
||||
try
|
||||
FTarWriter := TTarWriter.Create(FGZFileStream);
|
||||
@ -4744,6 +4747,10 @@ begin
|
||||
except
|
||||
FGZFileStream.Free;
|
||||
end;
|
||||
finally
|
||||
If (APackage.Directory<>'') then
|
||||
EnterDir(APackage.Directory);
|
||||
end;
|
||||
end;
|
||||
{$ifdef unix}
|
||||
if (FpStat(ASourceFileName, FileStat) = 0) and (FileStat.st_mode and S_IXUSR = S_IXUSR) then
|
||||
@ -8016,3 +8023,4 @@ Finalization
|
||||
FreeAndNil(GlobalDictionary);
|
||||
FreeAndNil(Defaults);
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user