From: Jess Robinson Date: Tue, 15 Jan 2013 10:26:22 +0000 (+0000) Subject: Introduce $targetport to allow running on a non-standard ssh port X-Git-Tag: upstream/5.20.0~748 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dad780ec111be4b23024a2f156e8e1ea7902514c;p=platform%2Fupstream%2Fperl.git Introduce $targetport to allow running on a non-standard ssh port Such as when using user networking on qemu and redirecting a local port to the emulator ssh --- diff --git a/Configure b/Configure index 7e8ad6e..c778794 100755 --- a/Configure +++ b/Configure @@ -210,6 +210,7 @@ run='' targetarch='' targetdir='' targethost='' +targetport='' to='' sysroot='' usecrosscompile='' @@ -2899,6 +2900,11 @@ $define|true|[yY]*) echo "Guessing targetuser $targetuser." >&4 ;; esac + case "$targetport" in + '') targetport=22 + echo "Guessing targetport $targetport." >&4 + ;; + esac case "$targetfrom" in scp) q=-q ;; *) q='' ;; @@ -2919,7 +2925,8 @@ case "\$cwd" in esac exe=\$1 shift -$targetrun -l $targetuser $targethost "cd \$cwd && ./\$exe \$@" +$to \$exe +$targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && ./\$exe \$@" EOF ;; *) echo "Unknown targetrun '$targetrun'" >&4 @@ -2930,7 +2937,7 @@ EOF */Cross/mkdir) cat >$targetmkdir <