diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-14 14:26:29 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-14 18:35:04 +0100 |
commit | ab923cd385d0105e1e9316bcb155342fde2a1efb (patch) | |
tree | c6f4fab948d2cbae8bf4bffaf7e3118ea25ae4e6 /dgit | |
parent | 5c221b7bacc586d96847e7dcbe53c8cc0a5e2ea9 (diff) |
Convert to defvalopt: -C
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -3131,6 +3131,13 @@ defvalopt '--quilt', '', $quilt_modes_re, \$quilt_mode; 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 @@ -3238,12 +3245,6 @@ sub parseopts () { 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]$/) { |