diff options
author | Eric Wong <e@80x24.org> | 2021-09-15 21:35:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-15 23:14:55 +0000 |
commit | add90b9504f4217af5e35b3be7e326b8c6419647 (patch) | |
tree | a324dd2f4f36d849dff752fcadd2ba82e93e7297 /script/public-inbox-init | |
parent | 5a5d2496f139e45823dbee3361ab790b2db4d31f (diff) | |
download | public-inbox-add90b9504f4217af5e35b3be7e326b8c6419647.tar.gz |
Because make(1), git(1), tar(1) all support -C in this form, as do our newer commands such as lei, public-inbox-{clone,fetch}.
Diffstat (limited to 'script/public-inbox-init')
-rwxr-xr-x | script/public-inbox-init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/public-inbox-init b/script/public-inbox-init index 78a4d3bd..1223d47e 100755 --- a/script/public-inbox-init +++ b/script/public-inbox-init @@ -36,7 +36,7 @@ PublicInbox::Admin::require_or_die('-base'); my ($version, $indexlevel, $skip_epoch, $skip_artnum, $jobs, $show_help); my $skip_docdata; my $ng = ''; -my @c_extra; +my (@c_extra, @chdir); my %opts = ( 'V|version=i' => \$version, 'L|index-level|indexlevel=s' => \$indexlevel, @@ -47,6 +47,7 @@ my %opts = ( 'skip-docdata' => \$skip_docdata, 'help|h' => \$show_help, 'c=s@' => \@c_extra, + 'C=s@' => \@chdir, ); my $usage_cb = sub { print STDERR $help; @@ -59,6 +60,7 @@ my $inboxdir = shift @ARGV or $usage_cb->(); my $http_url = shift @ARGV or $usage_cb->(); my (@address) = @ARGV; @address or $usage_cb->(); ++PublicInbox::Admin::do_chdir(\@chdir); @c_extra = map { my ($k, $v) = split(/=/, $_, 2); |