aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-05-23 01:40:19 +0800
committerjoe <joe@FreeBSD.org>2001-05-23 01:40:19 +0800
commitca233f59b659411cf6e435bbb62bd9de85ffad04 (patch)
treec320f18a8c056ebe3b22b89450782f52ee5e5730 /CVSROOT
parent78a594a5a0513c66b510d9f559647ddf9bb22f1d (diff)
downloadfreebsd-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-xCVSROOT/cfg.pm4
-rwxr-xr-xCVSROOT/log_accum.pl2
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;
}