3 #---------------------------------------------------------
6 # Script to extract webpages onto webserver
7 # Written by Tim Bishop [tdb1@ukc.ac.uk] 20/10/2000
9 # Copyright i-Scream, 2000
10 # http://www.i-scream.org.uk
11 #---------------------------------------------------------
16 $site=$query->param('site');
19 my ($left) = "http://www.i-scream.org.uk/left.inc";
20 my ($title) = "http://www.i-scream.org.uk/title.inc";
21 my ($bottom) = "http://www.i-scream.org.uk/bottom.inc";
23 print "Content-type: text/html\n\n";
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
30 Script to extract webpages onto webserver
31 Created by tdb1 20/10/2000
32 Last modified 25/11/2000
38 <title>The i-Scream Project CVS Website Extracter</title>
41 <body bgcolor="#ffffff" link="#0000ff" alink="#3333cc" vlink="#3333cc" text="#000066">
43 <table border="0" cellpadding="2" cellspacing="2">
48 print `/usr/local/bin/wget -O - -q $left`;
56 print `/usr/local/bin/wget -O - -q $title`;
60 #decide which site we're running on
61 if($site eq "raptor" && -e "/usr/local/proj/co600_10" && -d "/usr/local/proj/co600_10"){
63 print "<b>Debugging output from run on Raptor:</b>\n";
64 print `/usr/local/proj/co600_10/scripts/cvswww-extract-cmd`;
66 print "\n<b>Debugging output from cleanup:</b>\n";
67 print `/usr/local/proj/co600_10/scripts/cvswww-clean`;
70 elsif($site eq "main" && -e "/home/sites/www.i-scream.org.uk" && -d "/home/sites/www.i-scream.org.uk"){
72 print "<b>Debugging output from extract:</b>\n";
73 print `cd /home/sites/www.i-scream.org.uk/web && gunzip cvswww-extract.tar.gz && tar -xvf cvswww-extract.tar && rm -f cvswww-extract.tar`;
77 print "whoops, forget to say which site... or you lied :)\n";
82 print `/usr/local/bin/wget -O - -q $bottom`;