oxcd/update.sh

29 lines
618 B
Bash
Raw Normal View History

2012-09-06 10:08:30 +00:00
#!/bin/bash
oxcd_repos=http://code.0x2620.org/oxcd/
oxjs_repos=http://code.0x2620.org/oxjs/
cd `dirname $0`
base=`pwd`
current=`bzr revno`
2012-09-06 10:14:57 +00:00
bzr pull $oxcd_repos
2012-09-06 10:08:30 +00:00
new=`bzr revno`
cd $base
if [ -e oxcd/static/oxjs ]; then
cd oxcd/static/oxjs
current=$current`bzr revno`
bzr pull $oxjs_repos
new=$new`bzr revno`
else
cd oxcd/static
bzr branch $oxjs_repos
cd oxjs
new=$new`bzr revno`
fi
if [ $current -ne $new ]; then
cd $base/oxcd/static/oxjs
if [ -e build/Ox.Geo/json/Ox.Geo.json ]; then
./tools/build/build.py -nogeo >/dev/null
else
./tools/build/build.py >/dev/null
fi
fi