diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-10-11 13:22:17 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-22 13:08:21 -0300 |
commit | d1739b52b763ef707b7a9b6a9bac35fd1d6faadb (patch) | |
tree | edf626cd66d7d95ef060498d9a80d637c2f4518f /Configure | |
parent | f63fc11bdb2085c1a2e9a777e5f4fe673fbedc58 (diff) | |
download | perl-d1739b52b763ef707b7a9b6a9bac35fd1d6faadb.tar.gz |
Configure: Teach run-ssh to handle -env
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |