comparison scripts/build_unix.sh @ 173:e77e331c874b

Update *nix build script to version tarball.
author Jeremy Thurgood <firxen@gmail.com>
date Wed, 25 Aug 2010 13:13:49 +0200
parents 2854aa4f5ac2
children 0bad554d0926
comparison
equal deleted inserted replaced
172:3b5cfb3f794e 173:e77e331c874b
1 #!/bin/bash 1 #!/bin/bash
2 2
3 GAME_NAME="suspended-sentence" 3 GAME_NAME="suspended-sentence"
4 4
5 rm -rf build/${GAME_NAME} 5 SS_VERSION=`PYTHONPATH=. python -c "from gamelib import version; print version.VERSION_STR"`
6 mkdir -p build/${GAME_NAME} dist 6 BUILD_NAME="${GAME_NAME}-${SS_VERSION}"
7 BUILD_FOLDER="build/${GAME_NAME}"
8 TARBALL_NAME="${BUILD_NAME}.tgz"
7 9
8 cp -r COPYING README.txt run_game.py setup.py gamelib Resources build/${GAME_NAME} 10 rm -rf ${BUILD_FOLDER}
11 mkdir -p ${BUILD_FOLDER} dist
12
13 cp -r COPYING README.txt run_game.py setup.py gamelib Resources ${BUILD_FOLDER}/
9 14
10 cd build 15 cd build
11 16
12 # Add albow to our game 17 # Add albow to our game
13 unzip ../deps/Albow-2.1.0.zip > /dev/null 18 unzip ../deps/Albow-2.1.0.zip > /dev/null
14 mv Albow-2.1.0/albow ${GAME_NAME} 19 mv Albow-2.1.0/albow ${GAME_NAME}
15 rm -rf Albow-2.1.0 20 rm -rf Albow-2.1.0
16 21
17 tar czf ../dist/${GAME_NAME}.tgz captured 22 tar czf ../dist/${TARBALL_NAME} ${GAME_NAME}
18 23