1998-06-16 21:43:24 +00:00
|
|
|
#!/usr/bonsaitools/bin/perl --
|
|
|
|
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Netscape Public License
|
|
|
|
# Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
# compliance with the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS"
|
|
|
|
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing rights and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
# The Original Code is the Tinderbox build tool.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape Communications
|
|
|
|
# Corporation. Portions created by Netscape are Copyright (C) 1998
|
|
|
|
# Netscape Communications Corporation. All Rights Reserved.
|
|
|
|
|
|
|
|
use lib "../bonsai";
|
|
|
|
|
|
|
|
require 'lloydcgi.pl';
|
|
|
|
require 'globals.pl';
|
|
|
|
require 'header.pl';
|
|
|
|
|
|
|
|
$|=1;
|
|
|
|
|
|
|
|
print "Content-type: text/html\n\n<HTML>\n";
|
|
|
|
|
|
|
|
EmitHtmlHeader("administer tinderbox", "tree: $tree");
|
|
|
|
|
|
|
|
&load_data;
|
|
|
|
|
1998-09-01 01:14:20 +00:00
|
|
|
if (defined($tree)) {
|
1998-09-01 01:40:24 +00:00
|
|
|
if( -r "$tree/mod.pl" ){
|
|
|
|
require "$tree/mod.pl";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$message_of_day = "";
|
|
|
|
}
|
1998-06-16 21:43:24 +00:00
|
|
|
|
1998-09-01 01:40:24 +00:00
|
|
|
print "
|
1998-06-16 21:43:24 +00:00
|
|
|
<FORM method=post action=doadmin.cgi>
|
|
|
|
<B>Password:</B> <INPUT NAME=password TYPE=password>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=tree VALUE=$tree>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=command VALUE=set_message>
|
|
|
|
<br><b>Message of the Day
|
1998-08-19 23:31:52 +00:00
|
|
|
<br><TEXTAREA NAME=message ROWS=10 COLS=70 WRAP=SOFT>$message_of_day
|
1998-06-16 21:43:24 +00:00
|
|
|
</TEXTAREA>
|
|
|
|
<br><INPUT TYPE=SUBMIT VALUE='Set Message of the Day'>
|
|
|
|
</FORM>
|
|
|
|
<hr>
|
|
|
|
";
|
|
|
|
|
|
|
|
|
1998-09-01 01:40:24 +00:00
|
|
|
print "
|
1998-06-16 21:43:24 +00:00
|
|
|
<FORM method=post action=doadmin.cgi>
|
|
|
|
<B>Password:</B> <INPUT NAME=password TYPE=password>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=tree VALUE=$tree>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=command VALUE=trim_logs>
|
|
|
|
<br><b>Trim Logs to <INPUT NAME=days size=5 VALUE='7'> days.</b> (Tinderbox
|
|
|
|
shows 2 days history by default. You can see more by clicking show all).
|
|
|
|
<br><INPUT TYPE=SUBMIT VALUE='Trim Logs'>
|
|
|
|
</FORM>
|
|
|
|
<FORM method=post action=doadmin.cgi>
|
|
|
|
<hr>
|
|
|
|
" ;
|
1998-09-01 01:14:20 +00:00
|
|
|
}
|
1998-06-16 21:43:24 +00:00
|
|
|
|
|
|
|
print "
|
|
|
|
<FORM method=post action=doadmin.cgi>
|
|
|
|
<B>Password:</B> <INPUT NAME=password TYPE=password> <BR>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=tree VALUE=$tree>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=command VALUE=create_tree>
|
|
|
|
<TABLE>
|
|
|
|
<TR>
|
|
|
|
<TD><B>tinderbox tree name:</B></TD>
|
|
|
|
<TD><INPUT NAME=treename VALUE=''></TD>
|
|
|
|
</TR><TR>
|
1998-12-31 21:33:19 +00:00
|
|
|
<TD><B>cvs repository:</B></TD>
|
|
|
|
<TD><INPUT NAME=repository VALUE=''></TD>
|
|
|
|
</TR><TR>
|
1998-06-16 21:43:24 +00:00
|
|
|
<TD><B>cvs module name:</B></TD>
|
|
|
|
<TD><INPUT NAME=modulename VALUE=''></TD>
|
|
|
|
</TR><TR>
|
|
|
|
<TD><B>cvs branch:</B></TD>
|
|
|
|
<TD><INPUT NAME=branchname VALUE='HEAD'></TD>
|
|
|
|
</TR>
|
|
|
|
</TABLE>
|
|
|
|
<INPUT TYPE=SUBMIT VALUE='Create a new Tinderbox page'>
|
|
|
|
</FORM>
|
|
|
|
<FORM method=post action=doadmin.cgi>
|
|
|
|
<hr>
|
1998-09-01 01:14:20 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
if (defined($tree)) {
|
1998-09-01 01:40:24 +00:00
|
|
|
print "
|
1998-06-22 21:28:47 +00:00
|
|
|
<B><font size=+1>If builds are behaving badly you can turn them off.</font></b><br> Uncheck
|
|
|
|
the build that is misbehaving and click the button. You can still see all the
|
|
|
|
builds even if some are disabled by adding the parameter <b><tt>&noignore=1</tt></b> to
|
|
|
|
the tinderbox URL.<br>
|
1998-06-16 21:43:24 +00:00
|
|
|
<B>Password:</B> <INPUT NAME=password TYPE=password> <BR>
|
|
|
|
<INPUT TYPE=HIDDEN NAME=tree VALUE=$tree>
|
1998-06-22 21:28:47 +00:00
|
|
|
<INPUT TYPE=HIDDEN NAME=command VALUE=disable_builds>
|
1998-06-16 21:43:24 +00:00
|
|
|
";
|
|
|
|
|
1998-09-01 01:40:24 +00:00
|
|
|
@names = sort (@$build_name_names, keys %$ignore_builds) ;
|
1998-06-22 21:28:47 +00:00
|
|
|
|
1998-09-01 01:40:24 +00:00
|
|
|
for $i (@names){
|
|
|
|
if( $i ne "" ){
|
|
|
|
$checked = ($ignore_builds->{$i} != 0 ? "": "CHECKED" );
|
|
|
|
print "<INPUT TYPE=checkbox NAME='build_$i' $checked >";
|
|
|
|
print "$i<br>\n";
|
|
|
|
}
|
1998-06-22 21:28:47 +00:00
|
|
|
}
|
1998-06-16 21:43:24 +00:00
|
|
|
|
1998-09-01 01:40:24 +00:00
|
|
|
print "
|
1998-06-22 21:28:47 +00:00
|
|
|
<INPUT TYPE=SUBMIT VALUE='Show only checked builds'>
|
1998-06-16 21:43:24 +00:00
|
|
|
</FORM>
|
|
|
|
<hr>
|
|
|
|
";
|
1998-09-01 01:14:20 +00:00
|
|
|
}
|
1998-06-16 21:43:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|