1
edit
Changes
m
# Where you want to you the HTML for the branch info
# This could be SSI'd, but that is a lot of work to set
# up with the ubuntu packages
my $branchlistpath = "${src_root}/branches.html";
# Number of branches, twice, once for the line, once for the description
my $branchcount = ($#{branches} + 1) * 2;
# Print the begining of the select block
print BRANCHLIST "<select class=\"q\" name=\"branch\" size=\"${branchcount}\" value=\"\" onClick=\"document.cookie = document.sbox.branch.selectedIndex;\" />\n";
# This is for an attempt at doing something, it is mostly useless
print BRANCHLIST "\t<optgroup label=\"$descriptions{$_}\" />\n";
print BRANCHLIST "\t<option> $_ </option>\n";
print BRANCHLIST "</select>\n";
→Pulling CVS
# Pull CVS from the mozilla project server
# Where you want the branch folders
my $src_root = "/var/mozilla";
# Where is your run.sh for opengrok? (or equivalent script to start the indexer)
# Open the file or
open BRANCHLIST, ">$branchlistpath" or die "Could not open file";
# Clear out what ever source was there
make -f ${src_root}/${_}/mozilla/client.mk checkout MOZ_CO_PROJECT=all;
");
}
system ("bash $opengroker");