aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT/commit_prep.pl
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-09-19 09:51:20 +0800
committerjoe <joe@FreeBSD.org>2001-09-19 09:51:20 +0800
commit2027bcef2084f5a077fd232510c4e05d85d02b43 (patch)
treeadd8170b80fab91fb773d378daafe8ad727d874f /CVSROOT/commit_prep.pl
parentef2c34a5acd8adacfa8f8c14fa0a1748a12c54a7 (diff)
downloadfreebsd-ports-gnome-2027bcef2084f5a077fd232510c4e05d85d02b43.tar.gz
freebsd-ports-gnome-2027bcef2084f5a077fd232510c4e05d85d02b43.tar.zst
freebsd-ports-gnome-2027bcef2084f5a077fd232510c4e05d85d02b43.zip
Define a new configuration variable for globally switching on
rcsid checking in committed files, and switch it on by default for the FreeBSD project.
Diffstat (limited to 'CVSROOT/commit_prep.pl')
-rwxr-xr-xCVSROOT/commit_prep.pl16
1 files changed, 2 insertions, 14 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl
index f937dad6297a..0cdb22722bb8 100755
--- a/CVSROOT/commit_prep.pl
+++ b/CVSROOT/commit_prep.pl
@@ -29,16 +29,6 @@ use strict;
use lib $ENV{CVSROOT};
use CVSROOT::cfg;
-############################################################
-#
-# Configurable options
-#
-############################################################
-#
-# Check each file (except dot files) for our RCS header keyword.
-# (defined in the constants section.)
-#
-my $check_id = 0;
############################################################
#
@@ -272,9 +262,7 @@ shift @ARGV;
$directory =~ s,^$cvsroot[/]+,,;
-if ($directory =~ /^src/) {
- $check_id = 1;
-}
+my $check_id = 0;
if ($directory =~ /^ports/) {
$check_id = 2;
}
@@ -287,7 +275,7 @@ if ($directory =~ /^src\/crypto/) {
#
# Now check each file name passed in, except those excluded.
#
-if ($check_id != 0) {
+if ($cfg::CHECK_HEADERS) {
my $failed = 0;
foreach my $arg (@ARGV) {
my $hastag = ($cvstag{$arg} ne '');