# HG changeset patch # User Pawel Solyga # Date 1221580575 0 # Node ID 715b07485c48a19e6877e866fb6723b758d8022e # Parent f2e327a7c5dead26682066a7b1e3fa0695a40377 Changed ZIPFILE variable to DJANGO_ZIPFILE in make_release.sh script and added 'cd $APP_FOLDER' before we zip django. diff -r f2e327a7c5de -r 715b07485c48 scripts/make_release.sh --- a/scripts/make_release.sh Tue Sep 16 02:28:33 2008 +0000 +++ b/scripts/make_release.sh Tue Sep 16 15:56:15 2008 +0000 @@ -8,14 +8,15 @@ # actually need to be uploaded, they still add to the work done for # each update. -ZIPFILE=django.zip +DJANGO_ZIPFILE=django.zip RELEASE=../release APP_FOLDER="../app" APP_FILES="app.yaml index.yaml __init__.py main.py settings.py urls.py" APP_DIRS="soc ghop gsoc" +cd $APP_FOLDER # Remove old $ZIPFILE file. -rm -rf $ZIPFILE +rm -rf $DJANGO_ZIPFILE # Create new $ZIPFILE file. # We prune: @@ -23,8 +24,9 @@ # - contrib/gis/ and related files because it's huge and unneeded. # - *.po and *.mo files because they are bulky and unneeded. # - *.pyc and *.pyo because they aren't used by App Engine anyway. -DJANGO_DIR=$APP_FOLDER"/django" -zip -q $APP_FOLDER/$ZIPFILE `find $DJANGO_DIR \ +DJANGO_DIR="django" + +zip -q $DJANGO_ZIPFILE `find $DJANGO_DIR \ -name .svn -prune -o \ -name gis -prune -o \ -name admin -prune -o \ @@ -36,7 +38,7 @@ -name postgresql_psycopg2 -prune -o \ -name sqlite3 -prune -o \ -name test -prune -o \ - -type f ! -name \*.py[co] ! -name \*.[pm]o -print` + -type f ! -name \*.py[co] ! -name *.[pm]o -print` # Remove old $RELEASE directory. rm -rf $RELEASE @@ -45,7 +47,8 @@ mkdir $RELEASE # Create symbolic links. -for x in $APP_FILES $APP_DIRS $ZIPFILE +for x in $APP_FILES $APP_DIRS $DJANGO_ZIPFILE do + echo $APP_FOLDER/$x $RELEASE/$x ln -s $APP_FOLDER/$x $RELEASE/$x done