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 (from parent 1:
f83789b
)
Convert to defvalopt: --distro, -d
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 13:07:21 +0000
(14:07 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 17:34:59 +0000
(18:34 +0100)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index f068df6a50f267680368d2ffa5f72864c9644565..89633444a5979c570bd0b4bf2514bd7e33f2d313 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-3124,6
+3124,7
@@
sub defvalopt ($$$&) {
defvalopt '--since-version', '-v', '[^_]+|_', sub {
($changes_since_version) = @_;
};
defvalopt '--since-version', '-v', '[^_]+|_', sub {
($changes_since_version) = @_;
};
+defvalopt '--distro', '-d', '.+', sub { ($idistro) = (@_); };
sub parseopts () {
my $om;
sub parseopts () {
my $om;
@@
-3189,9
+3190,6
@@
sub parseopts () {
$initiator_tempdir =~ m#^/# or
badusage "--initiator-tempdir must be used specify an".
" absolute, not relative, directory."
$initiator_tempdir =~ m#^/# or
badusage "--initiator-tempdir must be used specify an".
" absolute, not relative, directory."
- } elsif (m/^--distro=(.*)/s) {
- push @ropts, $_;
- $idistro = $1;
} elsif (m/^--build-products-dir=(.*)/s) {
push @ropts, $_;
$buildproductsdir = $1;
} elsif (m/^--build-products-dir=(.*)/s) {
push @ropts, $_;
$buildproductsdir = $1;
@@
-3247,9
+3245,6
@@
sub parseopts () {
} elsif (s/^-c(.*=.*)//s) {
push @ropts, $&;
push @git, '-c', $1;
} elsif (s/^-c(.*=.*)//s) {
push @ropts, $&;
push @git, '-c', $1;
- } elsif (s/^-d(.+)//s) {
- push @ropts, $&;
- $idistro = $1;
} elsif (s/^-C(.+)//s) {
push @ropts, $&;
$changesfile = $1;
} elsif (s/^-C(.+)//s) {
push @ropts, $&;
$changesfile = $1;