Updated TeeWorlds

This commit is contained in:
Sergii Pylypenko
2013-06-04 21:32:58 +03:00
parent e54de4d5f5
commit 93be285d54
3 changed files with 10 additions and 6 deletions

View File

@@ -3,10 +3,12 @@
LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
cd $LOCAL_PATH/src
[ -n "`find datasrc/*.py -cnewer src/game/generated/protocol.cpp 2>&1`" ] && {
echo "Building autogenerated files"
python --version > /dev/null 2>&1 || { echo "Error: no Python installed" ; exit 1 ; }
cd $LOCAL_PATH/src
python datasrc/compile.py network_source > src/game/generated/protocol.cpp
python datasrc/compile.py network_header > src/game/generated/protocol.h
python datasrc/compile.py client_content_source > src/game/generated/client_data.cpp
@@ -15,10 +17,12 @@ python datasrc/compile.py server_content_source > src/game/generated/server_data
python datasrc/compile.py server_content_header > src/game/generated/server_data.h
python scripts/cmd5.py src/engine/shared/protocol.h src/game/generated/protocol.h src/game/tuning.h src/game/gamecore.cpp src/game/generated/protocol.h > src/game/generated/nethash.cpp
}
[ -n "`find data *.txt *.cfg -cnewer ../AndroidData/data.zip 2>&1`" ] && {
echo "Archiving data"
mkdir -p ../AndroidData
zip -r data.zip data *.txt *.cfg >/dev/null
mv -f data.zip ../AndroidData/
zip -r ../AndroidData/data.zip data *.txt *.cfg >/dev/null
}
exit 0