Changeset 196
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r195 r196 6 6 7 7 PKGNAME=debbuild 8 VERSION=0.11. 18 VERSION=0.11.2 9 9 10 10 MANDIR=/usr/share/man -
trunk/debbuild
r195 r196 32 32 use Config; 33 33 34 my $version = "0.11. 1"; #VERSION#34 my $version = "0.11.2"; #VERSION# 35 35 36 36 # regex debugger … … 874 874 my $altsource = 0; 875 875 876 # yes, really. It's not clear how this cascades down to %build or %install877 my $thistarballdir = $tarballdir;878 879 876 my @sbits = split /\s+/; 880 877 shift @sbits; 881 878 while (my $sopt = shift @sbits) { 882 879 if ($sopt eq '-n') { 883 $t histarballdir = shift @sbits;880 $tarballdir = shift @sbits; 884 881 } elsif ($sopt eq '-a') { 885 882 # shift, next opt must be numeric (which sourcenn:) … … 920 917 $prepscript .= "cd '$topdir/BUILD'\n"; 921 918 $tarballdir = expandmacros($tarballdir,'gp'); 922 $prepscript .= "rm -rf '$t histarballdir'\n" if $deldir;923 $prepscript .= "/bin/mkdir -p $t histarballdir\n" if $changedir;919 $prepscript .= "rm -rf '$tarballdir'\n" if $deldir; 920 $prepscript .= "/bin/mkdir -p $tarballdir\n" if $changedir; 924 921 925 922 if ($deftarball) { 926 $prepscript .= "cd '$t histarballdir'\n" if $changedir;923 $prepscript .= "cd '$tarballdir'\n" if $changedir; 927 924 $prepscript .= 928 925 ( $pkgdata{main}{source} =~ /\.tar\.gz$/ ? "/bin/gzip" : "" ). … … 936 933 if ($altsource) { 937 934 if ($altsource == 1) { # -a 938 $prepscript .= "cd '$t histarballdir'\n";935 $prepscript .= "cd '$tarballdir'\n"; 939 936 $prepscript .= 940 937 ( $pkgdata{sources}{$snum} =~ /\.tar\.gz$/ ? "/bin/gzip" : "" ). … … 954 951 ( $quietunpack ? '' : 'vv' )."f -\n". 955 952 qq(STATUS=\$?\nif [ \$STATUS -ne 0 ]; then\n exit \$STATUS\nfi\n); 956 $prepscript .= "cd '$t histarballdir'\n";953 $prepscript .= "cd '$tarballdir'\n"; 957 954 } # $altsource == 2 958 955 }
Note:
See TracChangeset
for help on using the changeset viewer.