Mercurial > mamba
annotate scripts/build_unix.sh @ 578:1306f7d8ed35
Add support for serving zip file containing all levels.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 06 Oct 2013 22:47:45 +0200 |
parents | 4f3c55b09fda |
children |
rev | line source |
---|---|
433 | 1 #!/bin/bash |
2 | |
3 GAME_NAME="mutable-mamba" | |
4 | |
453
4f3c55b09fda
Fix version variable names.
Simon Cross <hodgestar@gmail.com>
parents:
433
diff
changeset
|
5 MM_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py` |
4f3c55b09fda
Fix version variable names.
Simon Cross <hodgestar@gmail.com>
parents:
433
diff
changeset
|
6 BUILD_NAME="${GAME_NAME}-${MM_VERSION}" |
433 | 7 BUILD_FOLDER="build/${GAME_NAME}" |
8 TARBALL_NAME="${BUILD_NAME}.tgz" | |
9 | |
10 rm -rf ${BUILD_FOLDER} | |
11 mkdir -p ${BUILD_FOLDER} dist | |
12 | |
13 hg archive ${BUILD_FOLDER}/ -I LICENSE.txt -I README.txt \ | |
14 -I setup.py -I run_game.py \ | |
15 -I scripts -I data -I mamba | |
16 | |
17 cd build | |
18 tar czf ../dist/${TARBALL_NAME} ${GAME_NAME} |