aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-07-04 03:58:41 +0800
committerwill <will@FreeBSD.org>2000-07-04 03:58:41 +0800
commit53ca9832bc466d494071038dffdf72f9d048f41a (patch)
tree9bbe6da3eda0f9b91139ff56aa0edbf5345ff0ff /Tools
parent1b88b3ee5e8209c1d000aa7f7d5957f72114397f (diff)
downloadfreebsd-ports-gnome-53ca9832bc466d494071038dffdf72f9d048f41a.tar.gz
freebsd-ports-gnome-53ca9832bc466d494071038dffdf72f9d048f41a.tar.zst
freebsd-ports-gnome-53ca9832bc466d494071038dffdf72f9d048f41a.zip
Allow existing CVS_RSH environment var to take precedent.
Submitted by: sobomax
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 = "";