aboutsummaryrefslogtreecommitdiff
path: root/tests/data/cmd-wrapper
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-21 17:45:55 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-21 17:45:55 -0800
commit60210334fa3dbd5dd168199063c6ee850d750d0c (patch)
tree31e832ba6788076075d38e20ffd27ebf09430407 /tests/data/cmd-wrapper
parente571a8eb96f42de5a114cf11ff1c3d63e5a8d301 (diff)
Imported Upstream version 0.10
Diffstat (limited to 'tests/data/cmd-wrapper')
-rwxr-xr-xtests/data/cmd-wrapper8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/data/cmd-wrapper b/tests/data/cmd-wrapper
new file mode 100755
index 0000000..79b1943
--- /dev/null
+++ b/tests/data/cmd-wrapper
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# Wrapper around the standard wallet-backend script that sets the Perl INC
+# path and the WALLET_CONFIG environment variable appropriately.
+
+WALLET_CONFIG="$SOURCE/data/wallet.conf"
+export WALLET_CONFIG
+exec perl -I"$SOURCE/../perl" "$SOURCE/../server/wallet-backend" -q "$@"