/[dtapublic]/to_be_filed/sf_code/esrgweba/scripts/cvs_web_refresh.txt
ViewVC logotype

Contents of /to_be_filed/sf_code/esrgweba/scripts/cvs_web_refresh.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (show annotations) (download)
Sat Oct 8 07:08:47 2016 UTC (8 years, 1 month ago) by dashley
File MIME type: text/plain
File size: 2159 byte(s)
Directories relocated.
1 #!/bin/bash
2 #--------------------------------------------------------------------------------
3 #$Header: /cvsroot/esrg/sfesrg/esrgweba/scripts/cvs_web_refresh.txt,v 1.4 2003/04/28 08:44:07 dtashley Exp $
4 #--------------------------------------------------------------------------------
5 #This script performs a web content refresh from CVS archives. The system is
6 #that changes are committed to CVS and get rolled into web content automatically
7 #by a cron job or on demand.
8 #--------------------------------------------------------------------------------
9 #Change to the right directory.
10 cd /home/groups/e/es/esrg
11 #
12 #Kill the current web content. Do this in advance to avoid exceeding
13 #any quotas.
14 rm -fR htdocs/*
15 #
16 #Grab tip from CVS.
17 cvs -d :pserver:anonymous@cvs1:/cvsroot/esrg checkout esrgweba
18 #
19 #Destroy all the CVS housekeeping directories.
20 rm -fR `find esrgweba -name CVS`
21 #
22 #Destroy all the informational files kept in version control.
23 rm -fR `find esrgweba -name _dircnts.txt`
24 rm -fR `find esrgweba -name _license.txt`
25 #
26 #Move everything to the web area.
27 mv esrgweba/htdocs/* htdocs
28 #
29 #Destroy the CVS staging area.
30 rm -fR esrgweba
31 #
32 #Make sure the CGI-BIN called for the number theory demos is executable
33 #by the PHP interpreter.
34 chmod 755 htdocs/phpcgibin/arith_large_cgi
35 #
36 #Make a hit counter and initialize it.
37 echo -n "0" >/home/groups/e/es/esrg/htdocs/hit_counter_01.txt
38 chmod 666 /home/groups/e/es/esrg/htdocs/hit_counter_01.txt
39 #
40 #Touch the welcome page so that the mod stamp is right.
41 touch /home/groups/e/es/esrg/htdocs/welcome.php
42 #
43 #--------------------------------------------------------------------------------
44 #$Log: cvs_web_refresh.txt,v $
45 #Revision 1.4 2003/04/28 08:44:07 dtashley
46 #Edits.
47 #
48 #Revision 1.3 2003/04/24 21:58:46 dtashley
49 #Functionality to remove extra housekeeping files and also to properly
50 #set up hit counter added.
51 #
52 #Revision 1.2 2003/04/24 09:35:54 dtashley
53 #Final polish put on. Seems to work well.
54 #
55 #Revision 1.1 2003/04/24 09:31:56 dtashley
56 #Initial checkin.
57 #--------------------------------------------------------------------------------

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25