Rebuild static pages when note is added.

This commit is contained in:
slamm%netscape.com 1999-06-04 22:56:36 +00:00
Родитель a34d353a60
Коммит 5041c9db47
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -54,7 +54,7 @@ if( $url = $form{"note"} ){
$note =~ s/\</&lt;/gi; $note =~ s/\</&lt;/gi;
$note =~ s/\>/&gt;/gi; $note =~ s/\>/&gt;/gi;
$enc_note = url_encode( $note ); $enc_note = url_encode( $note );
lock;
open( NOTES,">>$tree/notes.txt"); open( NOTES,">>$tree/notes.txt");
flock(NOTES, LOCK_EX); flock(NOTES, LOCK_EX);
print NOTES "$buildtime|$buildname|$who|$now|$enc_note\n"; print NOTES "$buildtime|$buildname|$who|$now|$enc_note\n";
@ -80,6 +80,11 @@ Go back to the Error Log</a>
<a href=\"showbuilds.cgi?tree=$tree\"> <a href=\"showbuilds.cgi?tree=$tree\">
<br>Go back to the build Page</a>"; <br>Go back to the build Page</a>";
# Build tinderbox static pages
$ENV{QUERY_STRING}="tree=$tree&static=1";
$ENV{REQUEST_METHOD}="GET";
system './showbuilds.cgi >/dev/null';
} else { } else {
&GetBuildNameIndex; &GetBuildNameIndex;