summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-10-11 13:22:17 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 13:08:21 -0300
commitd1739b52b763ef707b7a9b6a9bac35fd1d6faadb (patch)
treeedf626cd66d7d95ef060498d9a80d637c2f4518f /Configure
parentf63fc11bdb2085c1a2e9a777e5f4fe673fbedc58 (diff)
downloadperl-d1739b52b763ef707b7a9b6a9bac35fd1d6faadb.tar.gz
Configure: Teach run-ssh to handle -env
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/Configure b/Configure
index 245836cbcf..ded8f30433 100755
--- a/Configure
+++ b/Configure
@@ -2962,6 +2962,7 @@ case "$targethost" in
ssh|rsh)
cat >$run <<EOF
#!/bin/sh
+env=''
case "\$1" in
-cwd)
shift
@@ -2969,13 +2970,20 @@ case "\$1" in
shift
;;
esac
+case "\$1" in
+-env)
+ shift
+ env=\$1
+ shift
+ ;;
+esac
case "\$cwd" in
'') cwd=$targetdir ;;
esac
exe=\$1
shift
$to \$exe
-$targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && ./\$exe \$@"
+$targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && \$env ./\$exe \$@"
EOF
;;
*) echo "Unknown targetrun '$targetrun'" >&4