[Checkins] SVN: zope2docs/trunk/autoupdate.sh add autoupdate file - so far only available on the server

Hano Schlichting cvs-admin at zope.org
Sat Mar 2 16:15:59 UTC 2013


Log message for revision 130008:
  add autoupdate file - so far only available on the server
  

Changed:
  A   zope2docs/trunk/autoupdate.sh

-=-
Added: zope2docs/trunk/autoupdate.sh
===================================================================
--- zope2docs/trunk/autoupdate.sh	                        (rev 0)
+++ zope2docs/trunk/autoupdate.sh	2013-03-02 16:15:58 UTC (rev 130008)
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+#	autoupdate: Automatically update the zope2book HTML
+#
+ROOT="/home/zope/zope2docs"
+
+export PATH="${PATH}:${ROOT}/bin"
+
+before=$(svn info $ROOT | grep "^Last Changed Rev:" | cut -d " " -f 4)
+svn up -q $ROOT
+after=$(svn info $ROOT | grep "^Last Changed Rev:" | cut -d " " -f 4)
+
+if [ "$before" != "$after" ]; then
+    echo "Updated from revision $before to $after;  rebuilding HTML docs."
+    cd $ROOT
+    python bootstrap.py
+    ${ROOT}/bin/buildout -q -q
+    make -s html >/dev/null
+fi


Property changes on: zope2docs/trunk/autoupdate.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the checkins mailing list