#!/bin/bash

GAME_NAME="nine-tails"

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

cp -r LICENSE.txt README.txt setup.py scripts data skaapsteker ${BUILD_FOLDER}/

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