2013-03-25 04:26:56 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use FindBin qw($Bin);
|
|
|
|
use Getopt::Long;
|
|
|
|
require "$Bin/misc/devlib.pl";
|
|
|
|
|
|
|
|
my $tool = build_bin("./cmd/camtool");
|
2013-06-09 09:03:48 +00:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
|
2013-03-25 04:26:56 +00:00
|
|
|
exec($tool, @ARGV);
|
|
|
|
die "Failed to exec camtool.";
|
|
|
|
|