aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT/cvs_acls.pl
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-11-15 20:26:20 +0800
committerjoe <joe@FreeBSD.org>2001-11-15 20:26:20 +0800
commit67234ce6e2bd5ec843f88caff83a736665be9f8d (patch)
treea9ca306464c245f6b90c6b6394abc794dc5ca66e /CVSROOT/cvs_acls.pl
parent3edebeb4b1b3ce74f876e66021b23565681131c1 (diff)
downloadfreebsd-ports-gnome-67234ce6e2bd5ec843f88caff83a736665be9f8d.tar.gz
freebsd-ports-gnome-67234ce6e2bd5ec843f88caff83a736665be9f8d.tar.zst
freebsd-ports-gnome-67234ce6e2bd5ec843f88caff83a736665be9f8d.zip
Remove all references to /home/ncvs; the CVSROOT env variable is sufficient
to determine the location now-a-days. Move the name of the exclude file into the configuration file. Partly Submitted by: alfred
Diffstat (limited to 'CVSROOT/cvs_acls.pl')
-rwxr-xr-xCVSROOT/cvs_acls.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/CVSROOT/cvs_acls.pl b/CVSROOT/cvs_acls.pl
index 27b8e095cadd..a8239851253f 100755
--- a/CVSROOT/cvs_acls.pl
+++ b/CVSROOT/cvs_acls.pl
@@ -79,10 +79,10 @@ use strict;
use lib $ENV{CVSROOT};
use CVSROOT::cfg;
+my $CVSROOT = $ENV{'CVSROOT'} || die "Can't determine \$CVSROOT!";
my $debug = $cfg::DEBUG;
-my $cvsroot = $ENV{'CVSROOT'};
-my $availfile = $cvsroot . "/CVSROOT/avail";
+my $availfile = "$CVSROOT/CVSROOT/avail";
my $myname = $ENV{"LOGNAME"} || $ENV{"USER"};
my $die = '';
@@ -90,10 +90,8 @@ eval "print STDERR \$die='Unknown parameter $1\n' if !defined \$$1; \$$1=\$';"
while ($ARGV[0] =~ /^(\w+)=/ && shift(@ARGV));
exit 255 if $die; # process any variable=value switches
-die "Must set CVSROOT\n" if !$cvsroot;
-
my $repos = shift;
-$repos =~ s:^$cvsroot/::;
+$repos =~ s:^$CVSROOT/::;
grep($_ = $repos . '/' . $_, @ARGV);
print "$$ Repos: $repos\n","$$ ==== ",join("\n$$ ==== ",@ARGV),"\n" if $debug;