view scripts/build_unix.sh @ 630:a5f573002fb0 pyntnclick

Pass rect around (we're going to be doing this alot).
author Simon Cross <hodgestar+bzr@gmail.com>
date Sat, 11 Feb 2012 22:20:52 +0200
parents 44d4e3020874
children 096a568d98aa
line wrap: on
line source

#!/bin/bash

GAME_NAME="suspended-sentence"

SS_VERSION=`PYTHONPATH=. python -c "from gamelib import version; print version.VERSION_STR"`
BUILD_NAME="${GAME_NAME}-${SS_VERSION}"
BUILD_FOLDER="build/${GAME_NAME}"
TARBALL_NAME="${BUILD_NAME}.tgz"

rm -rf ${BUILD_FOLDER}
mkdir -p ${BUILD_FOLDER} dist

cp -r COPYING README.txt run_game.py setup.py docs tools gamelib Resources ${BUILD_FOLDER}/

cd build

tar czf ../dist/${TARBALL_NAME} ${GAME_NAME}