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:
5c221b7
)
Convert to defvalopt: -C
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 13:26:29 +0000
(14:26 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 17:35:04 +0000
(18:35 +0100)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 24772a90efb37c729fead5388573c884d1196798..6f4565bf017314d7ef109a22886445a628f67783 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-3131,6
+3131,13
@@
defvalopt '--quilt', '', $quilt_modes_re, \$quilt_mode;
defvalopt '', '-c', '.*=.*', sub { push @git, '-c', @_; };
defvalopt '', '-c', '.*=.*', sub { push @git, '-c', @_; };
+defvalopt '', '-C', '.+', sub {
+ ($changesfile) = (@_);
+ if ($changesfile =~ s#^(.*)/##) {
+ $buildproductsdir = $1;
+ }
+};
+
defvalopt '--initiator-tempdir','','.*', sub {
($initiator_tempdir) = (@_);
$initiator_tempdir =~ m#^/# or
defvalopt '--initiator-tempdir','','.*', sub {
($initiator_tempdir) = (@_);
$initiator_tempdir =~ m#^/# or
@@
-3238,12
+3245,6
@@
sub parseopts () {
push @ropts, $&;
push @changesopts, $_;
$_ = '';
push @ropts, $&;
push @changesopts, $_;
$_ = '';
- } elsif (s/^-C(.+)//s) {
- push @ropts, $&;
- $changesfile = $1;
- if ($changesfile =~ s#^(.*)/##) {
- $buildproductsdir = $1;
- }
} elsif (s/^-k(.+)//s) {
$keyid=$1;
} elsif (m/^-[dCk]$/) {
} elsif (s/^-k(.+)//s) {
$keyid=$1;
} elsif (m/^-[dCk]$/) {