Changeset 188 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Oct 8, 2007, 11:51:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r180 r188 333 333 334 334 my $src="$ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.gz"; 335 # Suse < 10.2 forces tar.bz2 usage :-( 336 if ($ddir eq "suse") { 337 my $newsrc="$ENV{'PBDESTDIR'}/$pbpkg-$pbver.tar.bz2"; 338 system "gzip -cd $src | bzip2 -c6 > $newsrc"; 339 $src = $newsrc; 340 } 335 341 print $LOG "Source file: $src\n" if ($debug >= 0); 336 342 … … 343 349 } 344 350 351 symlink "$src","$ENV{'PBBUILDDIR'}/SOURCES/".basename($src) || die "Unable to symlink $src in $ENV{'PBBUILDDIR'}/SOURCES"; 345 352 # We need to first extract the spec file 346 symlink "$src","$ENV{'PBBUILDDIR'}/SOURCES/".basename($src) || die "Unable to symlink $src in $ENV{'PBBUILDDIR'}/SOURCES";347 353 my @specfile; 348 354 @specfile = pb_extract_build_files($src,"$pbpkg-$pbver/pbconf/$ddir-$dver/","$ENV{'PBBUILDDIR'}/SPECS"); … … 742 748 my @files; 743 749 744 pb_system("tar xfpz $src $dir","Extracting build files"); 750 if ($src =~ /tar\.gz$/) { 751 pb_system("tar xfpz $src $dir","Extracting build files"); 752 } elsif ($src =~ /tar\.bz2$/) { 753 pb_system("tar xfpj $src $dir","Extracting build files"); 754 } else { 755 die "Unknown compression algorithm for $src"; 756 } 745 757 opendir(DIR,"$dir") || die "Unable to open directory $dir"; 746 758 foreach my $f (readdir(DIR)) {
Note:
See TracChangeset
for help on using the changeset viewer.