diff -r 2d5a7c18f9ea -r 451f39c0e1aa scripts/make_release.sh --- a/scripts/make_release.sh Tue Sep 16 17:38:09 2008 +0000 +++ b/scripts/make_release.sh Tue Sep 16 18:00:55 2008 +0000 @@ -8,30 +8,30 @@ # actually need to be uploaded, they still add to the work done for # each update. -DJANGO_ZIPFILE=django.zip DEFAULT_APP_RELEASE=../release DEFAULT_APP_FOLDER="../app" DEFAULT_APP_FILES="app.yaml index.yaml __init__.py main.py settings.py urls.py" -DEFAULT_APP_DIRS="soc ghop gsoc feedparser tiny_mce" +DEFAULT_APP_DIRS="soc ghop gsoc feedparser" +DEFAULT_ZIP_FILES="django.zip tiny_mce.zip" APP_RELEASE=${APP_RELEASE:-"${DEFAULT_APP_RELEASE}"} APP_FOLDER=${APP_FOLDER:-"${DEFAULT_APP_FOLDER}"} APP_FILES=${APP_FILES:-"${DEFAULT_APP_FILES}"} APP_DIRS=${APP_DIRS:-"${DEFAULT_APP_DIRS}"} +ZIP_FILES=${ZIP_FILES:-"${DEFAULT_ZIP_FILES}"} cd $APP_FOLDER -# Remove old $DJANGO_ZIPFILE file. -rm -rf $DJANGO_ZIPFILE +# Remove old zip files +rm -rf $ZIP_FILES -# Create new $DJANGO_ZIPFILE file. +# Create new django.zip file. # We prune: # - .svn subdirectories for obvious reasons. # - 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="django" -zip -q $DJANGO_ZIPFILE `find $DJANGO_DIR \ +zip -q django.zip `find django \ -name .svn -prune -o \ -name gis -prune -o \ -name admin -prune -o \ @@ -45,6 +45,16 @@ -name test -prune -o \ -type f ! -name \*.py[co] ! -name *.[pm]o -print` +# Create new tiny_mce.zip file. +# We prune: +# - .svn subdirectories for obvious reasons. + +pushd tiny_mce > /dev/null +zip -q ../tiny_mce.zip `find . \ + -name .svn -prune -o \ + -type f -print` +popd > /dev/null + # Remove old $APP_RELEASE directory. rm -rf $APP_RELEASE @@ -52,10 +62,10 @@ mkdir $APP_RELEASE # Create symbolic links. -for x in $APP_FILES $APP_DIRS $DJANGO_ZIPFILE +for x in $APP_FILES $APP_DIRS $ZIP_FILES do - #echo $APP_FOLDER/$x $APP_RELEASE/$x ln -s $APP_FOLDER/$x $APP_RELEASE/$x done echo "Release created in $APP_RELEASE." +