2011-11-02 20:51:29 +00:00
|
|
|
#!/bin/bash
|
2011-11-04 11:29:00 +00:00
|
|
|
pandora_repos=http://code.0x2620.org/pandora/
|
|
|
|
oxjs_repos=http://code.0x2620.org/oxjs/
|
|
|
|
python_ox_repos=http://code.0x2620.org/python-ox/
|
|
|
|
|
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-11-04 11:29:00 +00:00
|
|
|
bzr pull $pandora_repos
|
2011-11-02 20:51:29 +00:00
|
|
|
new=`bzr revno`
|
2011-11-04 11:29:00 +00:00
|
|
|
cd $base
|
|
|
|
if [ -e static/oxjs ]; then
|
|
|
|
cd static/oxjs
|
|
|
|
current=$current`bzr revno`
|
|
|
|
bzr pull $oxjs_repos
|
|
|
|
new=$new`bzr revno`
|
|
|
|
else
|
|
|
|
cd static
|
|
|
|
bzr branch $oxjs_repos
|
|
|
|
cd oxjs
|
|
|
|
new=$new`bzr revno`
|
|
|
|
fi
|
|
|
|
|
2011-10-23 10:50:24 +00:00
|
|
|
cd $base
|
2011-11-02 20:51:29 +00:00
|
|
|
if [ -e src/python-ox ]; then
|
|
|
|
cd src/python-ox
|
|
|
|
current=$current`bzr revno`
|
2011-11-04 11:29:00 +00:00
|
|
|
bzr pull $python_ox_repos
|
2011-11-02 20:51:29 +00:00
|
|
|
new=$new`bzr revno`
|
|
|
|
fi
|
|
|
|
cd $base
|
|
|
|
if [ $current -ne $new ]; then
|
|
|
|
cd pandora
|
|
|
|
./manage.py update_static
|
|
|
|
./manage.py compile_pyc
|
2011-11-04 11:29:00 +00:00
|
|
|
./manage.py sqldiff -a | grep -v BEGIN | grep -v COMMIT
|
2011-11-02 20:51:29 +00:00
|
|
|
fi
|