- Timestamp:
- 06/21/06 12:36:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r68 r69 444 444 $tarballdir = "$pkgdata{main}{name}-$pkgdata{main}{version}"; 445 445 } 446 $prepscript .= "rm -rf $tarballdir\ntar -". 446 $tarballdir = expandmacros($tarballdir,'gp'); 447 $prepscript .= "rm -rf $tarballdir\n"; 448 if (/\s+-c\s+/) { 449 $prepscript .= "mkdir $tarballdir\ncd $tarballdir\n"; 450 } 451 $prepscript .= "tar -". 447 452 ( $pkgdata{main}{source} =~ /\.tar\.gz$/ ? "z" : "" ). 448 453 ( $pkgdata{main}{source} =~ /\.tar\.bz2$/ ? "j" : "" ). … … 450 455 "$topdir/SOURCES/$pkgdata{main}{source}\n". 451 456 qq(STATUS=\$?\nif [ \$STATUS -ne 0 ]; then\n exit \$STATUS\nfi\n). 452 ( /\s+-n\s+([^\s]+)\s+/ ? 453 "cd $1\n" : "cd $pkgdata{main}{name}-$pkgdata{main}{version}\n" ). 457 "cd $topdir/BUILD/$tarballdir\n". 454 458 qq([ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root .\n). 455 459 qq([ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root .\n).
Note:
See TracChangeset
for help on using the changeset viewer.