|
From: James W. W. <os...@jw...> - 2004-06-13 21:29:55
|
On Jun 13, 2004, at 2:03 PM, Dair Grant wrote: > Actually, it does - there isn't any standard support for doing an > automatic update, so I knocked something together: OK, I hadn't thought the problem through carefully enough... > --------------------------------- > #!/bin/sh > > # Check out the current source > cd ~/tmp > rm -fR quesa > cvs -d:pserver:anonymous@cvs1:/cvsroot/quesa -Q export -Dtomorrow > quesa/Documentation > > > # Replace the web site > cd /home/groups/q/qu/quesa/htdocs > rm -fR * > mv ~/tmp/quesa/Documentation/* . > > > # Clean out the temp directory > cd ~/tmp > rm -fR quesa > --------------------------------- What if instead of doing rm and mv you did cp -R -f? Would that be safer? Granted it wouldn't remove obsolete files and directories, but we don't remove things very often. -- <http://www.jwwalker.com/> |