Changes

Jump to: navigation, search

Code Indexer

694 bytes removed, 23:31, 8 November 2006
m
Pulling CVS
# Pull CVS from the mozilla project server
# Where you want the branch folders
my $src_root = "/var/mozilla";
 
# 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";
# 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";
 
# 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";
# Clear out what ever source was there
make -f ${src_root}/${_}/mozilla/client.mk checkout MOZ_CO_PROJECT=all;
");
# 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";
system ("bash $opengroker");
1
edit

Navigation menu