Mercurial > mamba
diff scripts/build_unix.sh @ 433:e07b42656d22
Untested build scripts.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 17 Sep 2011 19:31:31 +0200 |
parents | |
children | 4f3c55b09fda |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/build_unix.sh Sat Sep 17 19:31:31 2011 +0200 @@ -0,0 +1,18 @@ +#!/bin/bash + +GAME_NAME="mutable-mamba" + +NT_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py` +BUILD_NAME="${GAME_NAME}-${NT_VERSION}" +BUILD_FOLDER="build/${GAME_NAME}" +TARBALL_NAME="${BUILD_NAME}.tgz" + +rm -rf ${BUILD_FOLDER} +mkdir -p ${BUILD_FOLDER} dist + +hg archive ${BUILD_FOLDER}/ -I LICENSE.txt -I README.txt \ + -I setup.py -I run_game.py \ + -I scripts -I data -I mamba + +cd build +tar czf ../dist/${TARBALL_NAME} ${GAME_NAME}