view scripts/build_unix.sh @ 493:d77cc1b17848 engine_refactor

Merged into default
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 21 Jun 2014 21:39:20 +0200
parents 7147369cee59
children 44d4e3020874
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

# Add albow to our game
unzip ../deps/Albow-2.1.0.zip > /dev/null
mv Albow-2.1.0/albow ${GAME_NAME}
rm -rf Albow-2.1.0

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