Update of /cvsroot/devil-linux/scripts/webtools
In directory sc8-pr-cvs1:/tmp/cvs-serv12392
Modified Files:
update_web_from_cvs
Log Message:
don't ask for cvs pass when not necessary
add more verbosity
Index: update_web_from_cvs
===================================================================
RCS file: /cvsroot/devil-linux/scripts/webtools/update_web_from_cvs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- update_web_from_cvs 1 Jan 2004 18:00:51 -0000 1.2
+++ update_web_from_cvs 1 Jan 2004 18:22:06 -0000 1.3
@@ -3,11 +3,20 @@
cd /home/groups/d/de/devil-linux || exit 1
test -d web && rm -rf web
-yes "" | cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux login || exit 1
-cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux co web || exit 1
+[ -f ~/.cvspass ] || cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux login || exit 1
+
+echo Getting files from cvs:
+cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux co web > /dev/null || exit 1
+
+echo -n "Cleaning up and updating rights..."
find web/ -type d -name CVS | xargs rm -rf
find web/ -type f | xargs chmod 0664
find web/ -type d | xargs chmod 2775
+echo done.
+
+echo -n "Moving new files into place..."
mv htdocs htdocs.old
mv web htdocs
rm -rf htdocs.old
+echo done.
+
|