diff options
-rwxr-xr-x | CVSROOT/cfg.pm | 43 | ||||
-rw-r--r-- | CVSROOT/checkoutlist | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm new file mode 100755 index 000000000000..373aa1f41bc6 --- /dev/null +++ b/CVSROOT/cfg.pm @@ -0,0 +1,43 @@ +# $FreeBSD$ + +#################################################################### +#################################################################### +# This file contains configuration for the CVSROOT perl scripts. +# WARNING: You are strongly adviced to check for syntax errors +# in this file before committing it. Use: perl -c cfg.pm +#################################################################### +#################################################################### + +package cfg; +use strict; +use vars qw(%TEMPLATE_HEADERS); + + +############################################################ +# +# Configurable options +# +############################################################ + + +################ +### logcheck ### +################ + +# These are the optional headers that can be filled at the end of +# each commit message. The associated value is a regular-expression +# that is used to type-check the entered value. If a match fails +# then the commit is rejected. (See rcstemplate). +# +# Make sure that these are also described in the rcstemplate to +# make their usage clear to committers. +%TEMPLATE_HEADERS = ( + "Reviewed by" => '.*', + "Submitted by" => '.*', + "Obtained from" => '.*', + "Approved by" => '.*', + "PR" => '.*', + "MFC after" => '\d+(\s+(days?|weeks?|months?))?' +); + +#end diff --git a/CVSROOT/checkoutlist b/CVSROOT/checkoutlist index 5b9d9e60fac7..48a570833fc9 100644 --- a/CVSROOT/checkoutlist +++ b/CVSROOT/checkoutlist @@ -17,6 +17,7 @@ # access avail +cfg.pm commit_prep.pl commitcheck cvs_acls.pl |