pandora/update.sh

24 lines
485 B
Bash
Raw Normal View History

2011-11-02 20:51:29 +00:00
#!/bin/bash
2011-02-22 19:18:15 +00:00
cd `dirname $0`
2011-02-23 10:34:24 +00:00
base=`pwd`
2011-11-02 20:51:29 +00:00
current=`bzr revno`
2011-02-22 19:18:15 +00:00
bzr pull http://code.0x2620.org/pandora/
2011-11-02 20:51:29 +00:00
new=`bzr revno`
2011-02-22 19:18:15 +00:00
cd static/oxjs
2011-11-02 20:51:29 +00:00
current=$current`bzr revno`
2011-02-22 19:18:15 +00:00
bzr pull http://code.0x2620.org/oxjs/
2011-11-02 20:51:29 +00:00
new=$new`bzr revno`
cd $base
2011-11-02 20:51:29 +00:00
if [ -e src/python-ox ]; then
cd src/python-ox
current=$current`bzr revno`
bzr pull http://code.0x2620.org/python-ox/
new=$new`bzr revno`
fi
cd $base
if [ $current -ne $new ]; then
cd pandora
./manage.py update_static
./manage.py compile_pyc
fi