Update of /cvsroot/wxlua/website
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7327
Modified Files:
updatesite.sh
Log Message:
Index: updatesite.sh
===================================================================
RCS file: /cvsroot/wxlua/website/updatesite.sh,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** updatesite.sh 16 May 2006 19:45:59 -0000 1.21
--- updatesite.sh 16 May 2006 19:48:47 -0000 1.22
***************
*** 4,7 ****
--- 4,16 ----
export CVSROOT=:pserver:ano...@wx...s -q:/cvsroot/wxlua
+ function restorepermissions
+ {
+ echo Restoring permissions
+ cd /home/groups/w/wx/wxlua/htdocs
+ chmod -R ug+rw * cvs images docs screenshots wxLua download >/dev/null 2>&1
+ chmod -R a+x *.sh cvs images docs screenshots wxLua download >/dev/null 2>&1
+ }
+
+
echo Checking out website to htdocs dir from cvs
cd /home/groups/w/wx/wxlua
***************
*** 17,21 ****
# update to the main website only
if [ ! -z "$1" ]; then
! echo "Not updating component websites as per user request."
exit 0
fi
--- 26,31 ----
# update to the main website only
if [ ! -z "$1" ]; then
! echo "Not generating docs and tarball as per user request."
! restorepermissions
exit 0
fi
***************
*** 39,45 ****
find . -type f -mtime +7 -path "./wxLua_Snapshot_*" | xargs rm -f
!
! echo Restoring permissions
! cd /home/groups/w/wx/wxlua/htdocs
! chmod -R ug+rw * cvs images docs screenshots wxLua download >/dev/null 2>&1
! chmod -R a+x *.sh cvs images docs screenshots wxLua download >/dev/null 2>&1
--- 49,51 ----
find . -type f -mtime +7 -path "./wxLua_Snapshot_*" | xargs rm -f
! restorepermissions
|