diff options
author | krion <krion@FreeBSD.org> | 2004-06-04 05:27:23 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2004-06-04 05:27:23 +0800 |
commit | fcdc9fc30c5643934bbc67c35190702d110d1a16 (patch) | |
tree | 6f56f440c8c9eeeb09cece2c36ed40b9adda0aae | |
parent | 52e2407872328ec2729026b03390c0e5f0735949 (diff) | |
download | freebsd-ports-gnome-fcdc9fc30c5643934bbc67c35190702d110d1a16.tar.gz freebsd-ports-gnome-fcdc9fc30c5643934bbc67c35190702d110d1a16.tar.zst freebsd-ports-gnome-fcdc9fc30c5643934bbc67c35190702d110d1a16.zip |
- Check whether commits are approved by portmgr during the
ports freeze
-rwxr-xr-x | CVSROOT/cvs_acls.pl | 24 | ||||
-rw-r--r-- | CVSROOT/verifymsg | 2 |
2 files changed, 25 insertions, 1 deletions
diff --git a/CVSROOT/cvs_acls.pl b/CVSROOT/cvs_acls.pl index de9a7e25fb9b..998e261d9be3 100755 --- a/CVSROOT/cvs_acls.pl +++ b/CVSROOT/cvs_acls.pl @@ -90,6 +90,8 @@ my %GROUPS; # List of committer groups my $exit_val = 0; # Good Exit value my $universal_off = 0; +my $BASE_FN = "$cfg::TMPDIR/$cfg::FILE_PREFIX"; +my $FILES_FILE = "$BASE_FN.files"; ####################################### # process any variable=value switches @@ -109,6 +111,28 @@ grep($_ = $repos . '/' . $_, @ARGV); print "$$ Repos: $repos\n","$$ ==== ",join("\n$$ ==== ",@ARGV),"\n" if $debug; +####################################### +# Find Tag/Branch. +####################################### +my $tag = "HEAD"; +if (-r "CVS/Tag") { + open(TAG, "<CVS/Tag") or exit 1; + chomp(my $tmp = <TAG>); + close(TAG); + if ($tmp =~ m/^T(.*)/) { + $tag = $1; + } +} +print "$$ Tag: $tag\n" if $debug; +print "$$ Avail: $cfg::AVAIL_FILE\n" if $debug; +if (open(FILES, ">$FILES_FILE")) { + foreach (@ARGV) { + print FILES "$tag\t$_\n"; + } + close(FILES); +} else { + print "$$ Cannot open $FILES_FILE ($!)\n"; +} ####################################### # Check that the user has permission. diff --git a/CVSROOT/verifymsg b/CVSROOT/verifymsg index 6369ed636666..67b712642363 100644 --- a/CVSROOT/verifymsg +++ b/CVSROOT/verifymsg @@ -24,4 +24,4 @@ # repository. # Sanity check commit messages for obvious problems -DEFAULT $CVSROOT/CVSROOT/logcheck +DEFAULT $CVSROOT/CVSROOT/verifymsgcheck |