smarter update.sh
This commit is contained in:
parent
2101548d74
commit
f3779c9dbe
1 changed files with 17 additions and 2 deletions
19
update.sh
19
update.sh
|
@ -1,8 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
base=`pwd`
|
base=`pwd`
|
||||||
|
current=`bzr revno`
|
||||||
bzr pull http://code.0x2620.org/pandora/
|
bzr pull http://code.0x2620.org/pandora/
|
||||||
|
new=`bzr revno`
|
||||||
cd static/oxjs
|
cd static/oxjs
|
||||||
|
current=$current`bzr revno`
|
||||||
bzr pull http://code.0x2620.org/oxjs/
|
bzr pull http://code.0x2620.org/oxjs/
|
||||||
test -e src/python-ox && cd src/python-ox && bzr pull http://code.0x2620.org/python-ox/
|
new=$new`bzr revno`
|
||||||
cd $base
|
cd $base
|
||||||
cd pandora && ./manage.py update_static && ./manage.py compile_pyc
|
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
|
||||||
|
|
Loading…
Reference in a new issue