show sqldiff

This commit is contained in:
j 2011-11-04 12:29:00 +01:00
parent eb33042d87
commit ae6f8df886

View file

@ -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