mirror of https://github.com/perkeep/perkeep.git
Fix environment of dev-camtool.
Change-Id: I671e18cbc07ed9f28afdd3ac7368cd691f44a992
This commit is contained in:
parent
248a30ee9f
commit
ebbc943502
7
TODO
7
TODO
|
@ -1,10 +1,3 @@
|
|||
-- ./dev-camtool shouldn't look at $HOME's config:
|
||||
|
||||
$ ./dev-camtool sync
|
||||
Building ./cmd/camtool ...
|
||||
camlistore.org/cmd/camtool
|
||||
2013/06/09 10:57:22 Missing or invalid "server" in "/Users/bradfitz/.camlistore/config"
|
||||
|
||||
-- support for building (with just "make" or "go run make.go" for
|
||||
Windows) without having the camlistore-0.1.tar.gz extracted
|
||||
into a GOPATH (or really: not having any GOPATH set). should
|
||||
|
|
|
@ -29,7 +29,7 @@ $ENV{"CAMLI_CONFIG_DIR"} = "$Bin/config/dev-client-dir";
|
|||
$ENV{"CAMLI_SECRET_RING"} = "$Bin/pkg/jsonsign/testdata/test-secring.gpg";
|
||||
$ENV{"CAMLI_KEYID"} = "26F5ABDA";
|
||||
$ENV{"CAMLI_DEV_KEYBLOBS"} = "$Bin/config/dev-client-dir/keyblobs";
|
||||
$ENV{CAMLI_AUTH} = "userpass:camlistore:pass3179";
|
||||
$ENV{"CAMLI_AUTH"} = "userpass:camlistore:pass3179";
|
||||
my $blobserver = "http://localhost:3179/bs";
|
||||
if ($opt_tls) {
|
||||
$blobserver =~ s/^http/https/;
|
||||
|
|
|
@ -6,6 +6,14 @@ use Getopt::Long;
|
|||
require "$Bin/misc/devlib.pl";
|
||||
|
||||
my $tool = build_bin("./cmd/camtool");
|
||||
|
||||
# Copy of dev-camget's settings. See comments there.
|
||||
$ENV{"CAMLI_CONFIG_DIR"} = "$Bin/config/dev-client-dir";
|
||||
$ENV{"CAMLI_SECRET_RING"} = "$Bin/pkg/jsonsign/testdata/test-secring.gpg";
|
||||
$ENV{"CAMLI_KEYID"} = "26F5ABDA";
|
||||
$ENV{"CAMLI_DEV_KEYBLOBS"} = "$Bin/config/dev-client-dir/keyblobs";
|
||||
$ENV{"CAMLI_AUTH"} = "userpass:camlistore:pass3179";
|
||||
|
||||
exec($tool, @ARGV);
|
||||
die "Failed to exec camtool.";
|
||||
|
||||
|
|
Loading…
Reference in New Issue