diff options
author | joe <joe@FreeBSD.org> | 2001-05-23 01:40:19 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-05-23 01:40:19 +0800 |
commit | ca233f59b659411cf6e435bbb62bd9de85ffad04 (patch) | |
tree | c320f18a8c056ebe3b22b89450782f52ee5e5730 /CVSROOT | |
parent | 78a594a5a0513c66b510d9f559647ddf9bb22f1d (diff) | |
download | freebsd-ports-gnome-ca233f59b659411cf6e435bbb62bd9de85ffad04.tar.gz freebsd-ports-gnome-ca233f59b659411cf6e435bbb62bd9de85ffad04.tar.zst freebsd-ports-gnome-ca233f59b659411cf6e435bbb62bd9de85ffad04.zip |
Add a configuration option to enable the sending of commit mail on
directory creation.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/cfg.pm | 4 | ||||
-rwxr-xr-x | CVSROOT/log_accum.pl | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm index 6dfbfe0f6a4e..088b52321ce8 100755 --- a/CVSROOT/cfg.pm +++ b/CVSROOT/cfg.pm @@ -11,7 +11,7 @@ package cfg; use strict; use vars qw($DEBUG $FILE_PREFIX $MAILADDRS $MAILBANNER $MAILCMD - $TMPDIR %TEMPLATE_HEADERS); + $MAIL_ON_DIR_CREATION $TMPDIR %TEMPLATE_HEADERS); ###################### @@ -66,6 +66,8 @@ $MAILADDRS = "nobody"; # i.e. $MAILBANNER = "Project X CVS Repository"; $MAILBANNER = ""; +# Send mail when directories are created in the repository. +$MAIL_ON_DIR_CREATION = 1; diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl index 81f8ad55fcb8..547e39e1be75 100755 --- a/CVSROOT/log_accum.pl +++ b/CVSROOT/log_accum.pl @@ -507,7 +507,7 @@ if ($input_params =~ /New directory/) { push @text, " $input_params"; &do_changes_file(@text); - #&mail_notification(@text); + &mail_notification(@text) if $cfg::MAIL_ON_DIR_CREATION; &cleanup_tmpfiles(); exit 0; } |