summaryrefslogtreecommitdiffstats
path: root/CVSROOT/cfg.pm
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-09-08 02:11:35 +0000
committerjoe <joe@FreeBSD.org>2001-09-08 02:11:35 +0000
commita1bb03a63440878abb92e20895b4de31c3a68b6f (patch)
tree5b51cb863cc93d006c88b60385567af4cd36f7a2 /CVSROOT/cfg.pm
parentf0637c9a3553c3b3a4acb1801e78ec865456faf9 (diff)
downloadFreeBSD-ports-a1bb03a63440878abb92e20895b4de31c3a68b6f.zip
FreeBSD-ports-a1bb03a63440878abb92e20895b4de31c3a68b6f.tar.gz
Add code to unexpand $FreeBSD: xxxx $ (or whatever is defined in
the config file as being our $IDHEADER$) upon commit. This is useful to avoid a '+1 -1' delta against the version string. (Tested with both local and remote commits).
Diffstat (limited to 'CVSROOT/cfg.pm')
-rwxr-xr-xCVSROOT/cfg.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm
index 7100779..6816197 100755
--- a/CVSROOT/cfg.pm
+++ b/CVSROOT/cfg.pm
@@ -12,7 +12,7 @@ package cfg;
use strict;
use vars qw($DEBUG $FILE_PREFIX $MAILADDRS $MAILBANNER $MAILCMD
$MAIL_ON_DIR_CREATION $TMPDIR %TEMPLATE_HEADERS
- $LAST_FILE $PID $IDHEADER);
+ $LAST_FILE $PID $IDHEADER $UNEXPAND_RCSID);
######################
@@ -69,6 +69,11 @@ $LAST_FILE = "$TMPDIR/$FILE_PREFIX.lastdir";
# own ident header.
$IDHEADER = 'FreeBSD'; # Our RCS header is '$ FreeBSD $',
+# Contract any instances of $IDHEADER in the source file before committing.
+# This is useful because it means that expanded headers aren't stored in
+# the repository as part of the delta.
+$UNEXPAND_RCSID = 0;
+
####################
### log_accum.pl ###
OpenPOWER on IntegriCloud