mirror of https://github.com/perkeep/perkeep.git
dev-camput, dev-camget: options to make demos better
Change-Id: Ie109cc156a081b72b83b9851630addf515c1ceec
This commit is contained in:
parent
5bd9d4bf64
commit
979444de66
|
@ -38,7 +38,10 @@ unless (grep { /^--?shared\b/ } @ARGV) {
|
||||||
}
|
}
|
||||||
push @args, @ARGV;
|
push @args, @ARGV;
|
||||||
|
|
||||||
|
my $verbose = "true";
|
||||||
|
$verbose = "false" if $ENV{CAMLI_QUIET};
|
||||||
|
|
||||||
exec("$camget",
|
exec("$camget",
|
||||||
"--verbose",
|
"--verbose=$verbose",
|
||||||
@args);
|
@args);
|
||||||
die "Failure running camget: $!";
|
die "Failure running camget: $!";
|
||||||
|
|
|
@ -38,8 +38,11 @@ if ($ENV{"CAMLI_WANT_CAMPUT_PASSWORD"}) { # Set by dev-pass-camput
|
||||||
print "**\n** Note: password is \"foo\"\n**\n";
|
print "**\n** Note: password is \"foo\"\n**\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $verbose = "true";
|
||||||
|
$verbose = "false" if $ENV{CAMLI_QUIET};
|
||||||
|
|
||||||
exec("$camput",
|
exec("$camput",
|
||||||
"--verbose",
|
"--verbose=$verbose",
|
||||||
"--server=$blobserver",
|
"--server=$blobserver",
|
||||||
@ARGV);
|
@ARGV);
|
||||||
die "Failure running camput: $!";
|
die "Failure running camput: $!";
|
||||||
|
|
|
@ -5,7 +5,10 @@ use FindBin qw($Bin);
|
||||||
sub build_bin {
|
sub build_bin {
|
||||||
my $target = shift;
|
my $target = shift;
|
||||||
my $final_bin = find_bin($target);
|
my $final_bin = find_bin($target);
|
||||||
|
if ($ENV{CAMLI_FAST_DEV}) {
|
||||||
|
return $final_bin;
|
||||||
|
}
|
||||||
|
|
||||||
my $full_target = $target;
|
my $full_target = $target;
|
||||||
$full_target =~ s!^\./((cmd|server)/(\w+))$!camlistore.org/$1! or die "Bogus target $target";
|
$full_target =~ s!^\./((cmd|server)/(\w+))$!camlistore.org/$1! or die "Bogus target $target";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue