3 # Used to update http://openlayers.org/dev/
5 svn up /www/openlayers/docs/dev;
7 # Get current 'Last Changed Rev'
8 REV=`svn info /www/openlayers/docs/dev/ | grep 'Last Changed Rev' | awk '{print $4}'`
10 # Get the last svn rev
12 OLD_REV="o`cat /tmp/ol_svn_rev`"
14 # If they're not equal, do some work.
15 if [ ! o$REV = $OLD_REV ]; then
17 cd /www/openlayers/docs/dev/tools/
18 python exampleparser.py
19 cd /www/openlayers/docs/dev/build
25 sed -i -e 's!../lib/OpenLayers.js!../OpenLayers.js!' examples/*.html
26 perl /home/crschmidt/NaturalDocs -i /www/openlayers/docs/dev/lib -o HTML /www/openlayers/dev/apidocs -p /www/openlayers/docs/dev/apidoc_config -s Default OL >/dev/null
27 perl /home/crschmidt/NaturalDocs -i /www/openlayers/docs/dev/lib -o HTML /www/openlayers/dev/docs -p /www/openlayers/docs/dev/doc_config -s Default OL >/dev/null
30 echo -n $REV > /tmp/ol_svn_rev
33 svn up /www/openlayers/documentation-checkout
34 REV=`svn info /www/openlayers/documentation-checkout | grep 'Last Changed Rev' | awk '{print $4}'`
35 # Get the last svn rev
37 OLD_REV="o`cat /tmp/ol_doc_rev`"
38 # If they're not equal, do some work.
39 if [ ! o$REV = $OLD_REV ]; then
40 cd /www/openlayers/documentation-checkout
42 cp -r _build/html/* /www/openlayers/documentation
44 echo -n $REV > /tmp/ol_doc_rev