show sqldiff
This commit is contained in:
parent
eb33042d87
commit
ae6f8df886
1 changed files with 20 additions and 6 deletions
26
update.sh
26
update.sh
|
@ -1,18 +1,31 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
pandora_repos=http://code.0x2620.org/pandora/
|
||||||
|
oxjs_repos=http://code.0x2620.org/oxjs/
|
||||||
|
python_ox_repos=http://code.0x2620.org/python-ox/
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
base=`pwd`
|
base=`pwd`
|
||||||
current=`bzr revno`
|
current=`bzr revno`
|
||||||
bzr pull http://code.0x2620.org/pandora/
|
bzr pull $pandora_repos
|
||||||
new=`bzr revno`
|
new=`bzr revno`
|
||||||
cd static/oxjs
|
cd $base
|
||||||
current=$current`bzr revno`
|
if [ -e static/oxjs ]; then
|
||||||
bzr pull http://code.0x2620.org/oxjs/
|
cd static/oxjs
|
||||||
new=$new`bzr revno`
|
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
|
||||||
|
|
||||||
cd $base
|
cd $base
|
||||||
if [ -e src/python-ox ]; then
|
if [ -e src/python-ox ]; then
|
||||||
cd src/python-ox
|
cd src/python-ox
|
||||||
current=$current`bzr revno`
|
current=$current`bzr revno`
|
||||||
bzr pull http://code.0x2620.org/python-ox/
|
bzr pull $python_ox_repos
|
||||||
new=$new`bzr revno`
|
new=$new`bzr revno`
|
||||||
fi
|
fi
|
||||||
cd $base
|
cd $base
|
||||||
|
@ -20,4 +33,5 @@ if [ $current -ne $new ]; then
|
||||||
cd pandora
|
cd pandora
|
||||||
./manage.py update_static
|
./manage.py update_static
|
||||||
./manage.py compile_pyc
|
./manage.py compile_pyc
|
||||||
|
./manage.py sqldiff -a | grep -v BEGIN | grep -v COMMIT
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue