allow mail processing to cause regeneration.

This commit is contained in:
kestes%walrus.com 2004-07-18 18:37:46 +00:00
Родитель 4a29197e5d
Коммит 0e0d50f1df
2 изменённых файлов: 16 добавлений и 7 удалений

Просмотреть файл

@ -12,8 +12,8 @@
# server. No locks are used by the mail processes, data is passed to
# the tinderbox server in a maildir like format.
# $Revision: 1.35 $
# $Date: 2004-07-10 14:48:27 $
# $Revision: 1.36 $
# $Date: 2004-07-18 18:37:46 $
# $Author: kestes%walrus.com $
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/bin/processmail_builds,v $
# $Name: $
@ -63,6 +63,9 @@ use Persistence;
use TinderDB::Build;
use MailProcess;
# name of the version control system
$REGENERATE_AFTER_MAIL = $TinderConfig::REGENERATE_AFTER_MAIL || "0";
sub usage {
@ -1259,6 +1262,10 @@ sub assemble_files {
}
if ($REGENERATE_AFTER_MAIL) {
HTMLPopUp::regenerate_HTML_pages();
}
print $OUT;
exit 0;

Просмотреть файл

@ -7,8 +7,8 @@
# columns from being shown on the default pages.
# $Revision: 1.16 $
# $Date: 2004-07-17 00:04:19 $
# $Revision: 1.17 $
# $Date: 2004-07-18 18:37:46 $
# $Author: kestes%walrus.com $
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/bin/regenerate.cgi,v $
# $Name: $
@ -103,7 +103,7 @@ EOF
;
} else {
} elsif ( $ENV{"REQUEST_METHOD"} ) {
# called via HTTPPost
# Tell the webserver that everythings fine.
@ -112,11 +112,13 @@ Content-type: text/html
<HTML></HTML>
EOF
;
} else {
# called from a log processing program.
$out = '';
}
print $out;
HTMLPopUp::regenerate_HTML_pages();