Remove .pyc files are part of the update script.

This commit is contained in:
Fred Wenzel 2011-05-20 14:05:53 -07:00
Родитель 9786e9c1d4
Коммит 218b9eefb4
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
CODE_DIR=markup CODE_DIR=`dirname $0`/..
VENDOR_DIR=$CODE_DIR/ffdemo/vendor VENDOR_DIR=$CODE_DIR/ffdemo/vendor
LOCALE_DIR=$CODE_DIR/ffdemo/locale LOCALE_DIR=$CODE_DIR/ffdemo/locale
PYTHON=python PYTHON=python
FIND=`which find`
QUIET=-q QUIET=-q
echo -e Updating code... echo -e Updating code...
@ -20,7 +21,12 @@ git merge origin/master $QUIET
git submodule update $QUIET git submodule update $QUIET
cd - cd -
echo -e Migrating database.. echo -e Wiping pyc files...
cd $CODE_DIR/ffdemo
$FIND . -name '*.pyc' -delete
cd -
echo -e Migrating database...
cd $CODE_DIR/ffdemo cd $CODE_DIR/ffdemo
$PYTHON ./manage.py migrate markup $PYTHON ./manage.py migrate markup
cd - cd -