Skip to content

Commit

Permalink
add autoupdate file - so far only available on the server
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Mar 2, 2013
1 parent a0b8d80 commit ac64f00
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions autoupdate.sh
@@ -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

0 comments on commit ac64f00

Please sign in to comment.