diff scripts/wine-py2exe @ 742:0d5ff96527da pyntnclick

Make build scripts a bit more configurable
author Neil Muller <neil@dip.sun.ac.za>
date Wed, 16 Jan 2013 12:19:30 +0200
parents 096a568d98aa
children
line wrap: on
line diff
--- a/scripts/wine-py2exe	Wed Jan 16 11:01:22 2013 +0200
+++ b/scripts/wine-py2exe	Wed Jan 16 12:19:30 2013 +0200
@@ -4,8 +4,12 @@
 #
 # Usage: wine-py2exe
 
-OFA_VERSION=`PYTHONPATH=. python -c "from gamelib import version; print version.VERSION_STR"`
-BUILD_FOLDER="suspended-sentence-${OFA_VERSION}"
+GAME_NAME="suspended-sentence"
+GAME_MOD="gamelib"
+
+OFA_VERSION=`PYTHONPATH=. python -c "from ${GAME_MOD} import version; print version.VERSION_STR"`
+GAME_TITLE=`PYTHONPATH=. python -c "from ${GAME_MOD} import version; print version.NAME"`
+BUILD_FOLDER="${GAME_NAME}-${OFA_VERSION}"
 ZIP_NAME="${BUILD_FOLDER}.zip"
 PY2EXE_LOG="py2exe.log"
 
@@ -18,7 +22,7 @@
 
 echo "=== Running wine python setup.py ==="
 echo ""
-echo "  Suspended Sentence version: ${OFA_VERSION}"
+echo "  ${GAME_TITLE} version: ${OFA_VERSION}"
 echo "  Writing log to ${PY2EXE_LOG}."
 echo "  ---"
 echo "  Please make sure you have patched your py2exe run.exe"