oxcd/update.sh
2012-09-06 12:08:30 +02:00

28 lines
621 B
Bash
Executable file

#!/bin/bash
oxcd_repos=http://code.0x2620.org/oxcd/
oxjs_repos=http://code.0x2620.org/oxjs/
cd `dirname $0`
base=`pwd`
current=`bzr revno`
bzr pull $pandora_repos
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