From 979444de660d514bbdd7aeea664e31be8f485d66 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 29 Jul 2013 10:15:59 -0700 Subject: [PATCH] dev-camput, dev-camget: options to make demos better Change-Id: Ie109cc156a081b72b83b9851630addf515c1ceec --- dev-camget | 5 ++++- dev-camput | 5 ++++- misc/devlib.pl | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dev-camget b/dev-camget index 7800ca722..d46d1e884 100755 --- a/dev-camget +++ b/dev-camget @@ -38,7 +38,10 @@ unless (grep { /^--?shared\b/ } @ARGV) { } push @args, @ARGV; +my $verbose = "true"; +$verbose = "false" if $ENV{CAMLI_QUIET}; + exec("$camget", - "--verbose", + "--verbose=$verbose", @args); die "Failure running camget: $!"; diff --git a/dev-camput b/dev-camput index 53c504ef3..25f0f2acf 100755 --- a/dev-camput +++ b/dev-camput @@ -38,8 +38,11 @@ if ($ENV{"CAMLI_WANT_CAMPUT_PASSWORD"}) { # Set by dev-pass-camput print "**\n** Note: password is \"foo\"\n**\n"; } +my $verbose = "true"; +$verbose = "false" if $ENV{CAMLI_QUIET}; + exec("$camput", - "--verbose", + "--verbose=$verbose", "--server=$blobserver", @ARGV); die "Failure running camput: $!"; diff --git a/misc/devlib.pl b/misc/devlib.pl index 5c13a8ef9..c3152136e 100644 --- a/misc/devlib.pl +++ b/misc/devlib.pl @@ -5,7 +5,10 @@ use FindBin qw($Bin); sub build_bin { my $target = shift; my $final_bin = find_bin($target); - + if ($ENV{CAMLI_FAST_DEV}) { + return $final_bin; + } + my $full_target = $target; $full_target =~ s!^\./((cmd|server)/(\w+))$!camlistore.org/$1! or die "Bogus target $target";