#!/bin/bash #-------------------------------------------------------------------------------- #$Header: /cvsroot/esrg/sfesrg/esrgweba/scripts/cvs_web_refresh.txt,v 1.4 2003/04/28 08:44:07 dtashley Exp $ #-------------------------------------------------------------------------------- #This script performs a web content refresh from CVS archives. The system is #that changes are committed to CVS and get rolled into web content automatically #by a cron job or on demand. #-------------------------------------------------------------------------------- #Change to the right directory. cd /home/groups/e/es/esrg # #Kill the current web content. Do this in advance to avoid exceeding #any quotas. rm -fR htdocs/* # #Grab tip from CVS. cvs -d :pserver:anonymous@cvs1:/cvsroot/esrg checkout esrgweba # #Destroy all the CVS housekeeping directories. rm -fR `find esrgweba -name CVS` # #Destroy all the informational files kept in version control. rm -fR `find esrgweba -name _dircnts.txt` rm -fR `find esrgweba -name _license.txt` # #Move everything to the web area. mv esrgweba/htdocs/* htdocs # #Destroy the CVS staging area. rm -fR esrgweba # #Make sure the CGI-BIN called for the number theory demos is executable #by the PHP interpreter. chmod 755 htdocs/phpcgibin/arith_large_cgi # #Make a hit counter and initialize it. echo -n "0" >/home/groups/e/es/esrg/htdocs/hit_counter_01.txt chmod 666 /home/groups/e/es/esrg/htdocs/hit_counter_01.txt # #Touch the welcome page so that the mod stamp is right. touch /home/groups/e/es/esrg/htdocs/welcome.php # #-------------------------------------------------------------------------------- #$Log: cvs_web_refresh.txt,v $ #Revision 1.4 2003/04/28 08:44:07 dtashley #Edits. # #Revision 1.3 2003/04/24 21:58:46 dtashley #Functionality to remove extra housekeeping files and also to properly #set up hit counter added. # #Revision 1.2 2003/04/24 09:35:54 dtashley #Final polish put on. Seems to work well. # #Revision 1.1 2003/04/24 09:31:56 dtashley #Initial checkin. #--------------------------------------------------------------------------------