ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/misc/scripts/cvswww/cvswww-extract-cmd.c
Revision: 1.2
Committed: Mon Jun 18 15:04:45 2001 UTC (23 years, 5 months ago) by tdb
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Error occurred while calculating annotation data.
Log Message:
We no longer need these scripts as everything is done on one machine.

File Contents

# Content
1 #include <stdio.h>
2
3 //---------------------------------------------------------
4 // cvswww-extract-cmd.c
5 //
6 // Script to extract webpages onto webserver
7 // Written by Tim Bishop [tdb1@ukc.ac.uk] 20/10/2000
8 //
9 // Copyright i-Scream, 2000
10 // http://www.i-scream.org.uk
11 //---------------------------------------------------------
12
13
14 int main() {
15
16 //setup some dirs
17 system("cd /tmp && mkdir cvswww-extract-tmp && cd cvswww-extract-tmp && mkdir www && mkdir cgi-bin");
18
19 //extract www & cgi
20 system("cd /tmp/cvswww-extract-tmp && /usr/local/bin/cvs -d /usr/local/proj/co600_10/cvs export -d www -r HEAD web/raptor/www");
21 system("cd /tmp/cvswww-extract-tmp && /usr/local/bin/cvs -d /usr/local/proj/co600_10/cvs export -d cgi-bin -r HEAD web/raptor/cgi-bin");
22
23 //dump them over the existing stuff
24 system("cd /usr/local/proj/co600_10/webpages && (cd /tmp/cvswww-extract-tmp/www && tar cf - .) | tar xvf - >/dev/null");
25 system("cd /usr/local/proj/co600_10/cgi-bin && (cd /tmp/cvswww-extract-tmp/cgi-bin && tar cf - .) | tar xvf - >/dev/null");
26
27 return 0;
28 }
29