comparison 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
comparison
equal deleted inserted replaced
741:8b475faa1d63 742:0d5ff96527da
2 # wine-py2exe 2 # wine-py2exe
3 # Copyright Simon Cross, Neil Muller, 2009 (see COPYING File) 3 # Copyright Simon Cross, Neil Muller, 2009 (see COPYING File)
4 # 4 #
5 # Usage: wine-py2exe 5 # Usage: wine-py2exe
6 6
7 OFA_VERSION=`PYTHONPATH=. python -c "from gamelib import version; print version.VERSION_STR"` 7 GAME_NAME="suspended-sentence"
8 BUILD_FOLDER="suspended-sentence-${OFA_VERSION}" 8 GAME_MOD="gamelib"
9
10 OFA_VERSION=`PYTHONPATH=. python -c "from ${GAME_MOD} import version; print version.VERSION_STR"`
11 GAME_TITLE=`PYTHONPATH=. python -c "from ${GAME_MOD} import version; print version.NAME"`
12 BUILD_FOLDER="${GAME_NAME}-${OFA_VERSION}"
9 ZIP_NAME="${BUILD_FOLDER}.zip" 13 ZIP_NAME="${BUILD_FOLDER}.zip"
10 PY2EXE_LOG="py2exe.log" 14 PY2EXE_LOG="py2exe.log"
11 15
12 WINE_PYTHON=`winepath "C:/Python25"` 16 WINE_PYTHON=`winepath "C:/Python25"`
13 WINE_SYS32=`winepath "C:/windows/system32"` 17 WINE_SYS32=`winepath "C:/windows/system32"`
16 # Run py2exe build under wine 20 # Run py2exe build under wine
17 # 21 #
18 22
19 echo "=== Running wine python setup.py ===" 23 echo "=== Running wine python setup.py ==="
20 echo "" 24 echo ""
21 echo " Suspended Sentence version: ${OFA_VERSION}" 25 echo " ${GAME_TITLE} version: ${OFA_VERSION}"
22 echo " Writing log to ${PY2EXE_LOG}." 26 echo " Writing log to ${PY2EXE_LOG}."
23 echo " ---" 27 echo " ---"
24 echo " Please make sure you have patched your py2exe run.exe" 28 echo " Please make sure you have patched your py2exe run.exe"
25 echo " and run_w.exe with PETools (they need to have their" 29 echo " and run_w.exe with PETools (they need to have their"
26 echo " executable size correctly set)." 30 echo " executable size correctly set)."