chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d70125e
)
Convert to defvalopt: --clean
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 13:21:31 +0000
(14:21 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 17:35:02 +0000
(18:35 +0100)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 5baa5b5c7ceb9d22713f9d5a123438280d9652b1..b06e0782aca0dbc1671f107b33e6568f6583018c 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-3126,6
+3126,7
@@
defvalopt '--since-version', '-v', '[^_]+|_', \$changes_since_version;
defvalopt '--distro', '-d', '.+', \$idistro;
defvalopt '--existing-package','', '.*', \$existing_package;
defvalopt '--build-products-dir','','.*', \$buildproductsdir;
defvalopt '--distro', '-d', '.+', \$idistro;
defvalopt '--existing-package','', '.*', \$existing_package;
defvalopt '--build-products-dir','','.*', \$buildproductsdir;
+defvalopt '--clean', '', $cleanmode_re, \$cleanmode;
defvalopt '--initiator-tempdir','','.*', sub {
($initiator_tempdir) = (@_);
defvalopt '--initiator-tempdir','','.*', sub {
($initiator_tempdir) = (@_);
@@
-3195,11
+3196,6
@@
sub parseopts () {
($om = $opts_opt_map{$1})) {
push @ropts, $_;
push @$om, $2;
($om = $opts_opt_map{$1})) {
push @ropts, $_;
push @$om, $2;
- } elsif (m/^--clean=($cleanmode_re)$/os) {
- push @ropts, $_;
- $cleanmode = $1;
- } elsif (m/^--clean=(.*)$/s) {
- badusage "unknown cleaning mode \`$1'";
} elsif (m/^--quilt=($quilt_modes_re)$/s) {
push @ropts, $_;
$quilt_mode = $1;
} elsif (m/^--quilt=($quilt_modes_re)$/s) {
push @ropts, $_;
$quilt_mode = $1;