view scripts/build_unix.sh @ 600:50ba0275a3a3 pyweek12

Remove don't crash if we're colliding with a player after being bounced off the floor
author Neil Muller <drnlmuller@gmail.com>
date Sun, 10 Apr 2011 18:39:18 +0200
parents 9f3c2c0fcf01
children
line wrap: on
line source

#!/bin/bash

GAME_NAME="nine-tales"

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 skaapsteker

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