[Zope-dev] docs.zope.org
Jens Vagelpohl
jens at dataflake.org
Wed Aug 4 10:29:39 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/4/10 14:55 , Marius Gedminas wrote:
> On Wed, Aug 04, 2010 at 11:09:58AM +0200, Jens Vagelpohl wrote:
>> On 8/4/10 10:57 , Adam GROSZER wrote:
>>> Hello Jens,
>>>
>>> Something is wrong with the automatic update of
>>> http://docs.zope.org/zopetoolkit/
>>>
>>> Recent changes don't seem to show up.
>> I rebuilt it now. There's a check in a shell script to see if the
>> Subversion code is newer than the checked-out code, but it doesn't seem
>> to be reliable. I'll have to watch it.
>>
>> If someone could code up something more reliable I'd be very happy.
>
> Can we see the shell script somewhere?
The script (see below) sits at the root of the documentation buildout
(such as the buildout at http://svn.zope.org/zopetoolkit/), which
precreates the necessary sphinx-build script (that's why I am modifying
$PATH). It's run every 15 minutes to detect and incorporate
documentation changes in SVN. I'm not sure why it did stop firing the
way it should.
jens
#!/bin/sh
ROOT="/home/zope/zopetoolkit"
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/doc
python bootstrap.py
${ROOT}/doc/bin/buildout -q -q
make -s releaseinfo >/dev/null
make -s html >/dev/null
fi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkxZeVMACgkQRAx5nvEhZLJJzwCcCHstIBdBOiPMch+MQw7AYokD
27IAn0lK9AD+O9mMNALTtbxsVjczyANL
=V54Y
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list