summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-07-03 19:58:41 +0000
committerWill Andrews <will@FreeBSD.org>2000-07-03 19:58:41 +0000
commited1447026cfe1122fe56f689ed16dc9bb4e5765f (patch)
treee094e8fdb79525ea75e415e69c0562f0c83bacbb /Tools
parentAdd the cyrix driver. (diff)
Allow existing CVS_RSH environment var to take precedent.
Submitted by: sobomax
Notes
Notes: svn path=/head/; revision=30146
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index b942e3f3b04e..c8eba80582e0 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -32,7 +32,9 @@ my $tmpdir;
my $pwd;
my $repo;
my $ssh;
-$ENV{CVS_RSH} = "ssh";
+if( !defined $ENV{"CVS_RSH"} ) {
+ $ENV{CVS_RSH} = "ssh";
+}
my $make = "make";
my $portlint = "portlint -N -a -c";
my $perl = "perl";
@@ -45,7 +47,7 @@ my $category;
# now check to make sure this isn't running on freefall
chomp(my $myhost = lc(`hostname`));
if ($myhost ne lc($h)) {
- $ssh = "ssh $u\@$h";
+ $ssh = "$ENV{CVS_RSH} $u\@$h";
$repo = "$u\@$h:/home/ncvs";
} else {
$ssh = "";