our $changesfile;
our $new_package = 0;
our $existing_package = 'dpkg';
-our $clean = 'dpkg-source';
+our $cleanmode = 'dpkg-source';
our %format_ok = map { $_=>1 } ("1.0","3.0 (native)","3.0 (quilt)");
chdir $pwd or die $!;
runcmd_ordryrun qw(sh -ec),
'exec >$1; shift; exec "$@"','x',
- $sourcechanges,
+ "../$sourcechanges",
@dpkggenchanges, qw(-S), changesopts();
}
}
$changesfile = $1;
} elsif (s/^-k(.*)//s) {
$keyid=$1;
+ } elsif (s/^-wn//s) {
+ $cleanmode = 'none';
+ } elsif (s/^-wg//s) {
+ $cleanmode = 'git';
+ } elsif (s/^-wd//s) {
+ $cleanmode = 'dpkg-source';
} else {
badusage "unknown short option \`$_'";
}