aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-10-24 08:15:57 +0800
committerjoe <joe@FreeBSD.org>2001-10-24 08:15:57 +0800
commit22fc2e1e29d37bf127530445711d3679057b423e (patch)
tree1555204d730c75594f78d76896dc4ba818d52d3f /CVSROOT
parenteb7137a4e2b32a59c0cffd40ec3378ebd125f49a (diff)
downloadfreebsd-ports-gnome-22fc2e1e29d37bf127530445711d3679057b423e.tar.gz
freebsd-ports-gnome-22fc2e1e29d37bf127530445711d3679057b423e.tar.zst
freebsd-ports-gnome-22fc2e1e29d37bf127530445711d3679057b423e.zip
Add a local configuration file, cfg_local.pm, that can be used to
override entries in cfg.pm. Suggested by: will
Diffstat (limited to 'CVSROOT')
-rwxr-xr-xCVSROOT/cfg.pm8
-rw-r--r--CVSROOT/cfg_local.pm14
-rw-r--r--CVSROOT/checkoutlist1
3 files changed, 22 insertions, 1 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm
index dafd47628cd6..5170e01ec8a3 100755
--- a/CVSROOT/cfg.pm
+++ b/CVSROOT/cfg.pm
@@ -212,5 +212,11 @@ if ($hostname =~ /^(freefall|internat)\.freebsd\.org$/i) {
}
-#end
+# Load the local configuration file, that allows the entries in this
+# file to be overridden.
+eval { require "$ENV{CVSROOT}/CVSROOT/cfg_local.pm" }
+ if -e "$ENV{CVSROOT}/CVSROOT/cfg_local.pm";
+warn $@ if $@;
+
1; # Perl requires all modules to return true. Don't delete!!!!
+#end
diff --git a/CVSROOT/cfg_local.pm b/CVSROOT/cfg_local.pm
new file mode 100644
index 000000000000..0db7f3b630ea
--- /dev/null
+++ b/CVSROOT/cfg_local.pm
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+####################################################################
+####################################################################
+# This file contains local configuration for the CVSROOT perl
+# scripts. It is loaded by cfg.pm and overrides the default
+# configuration in that file.
+#
+# It is advised that you test it with 'perl -c cfg_local.pm'
+# before you commit any changes.
+####################################################################
+####################################################################
+
+#end
diff --git a/CVSROOT/checkoutlist b/CVSROOT/checkoutlist
index 48a570833fc9..157d5a8cccd7 100644
--- a/CVSROOT/checkoutlist
+++ b/CVSROOT/checkoutlist
@@ -18,6 +18,7 @@
access
avail
cfg.pm
+cfg_local.pm
commit_prep.pl
commitcheck
cvs_acls.pl