annotate scripts/build_unix.sh @ 824:9f542ef6e498 pyntnclick

Reorganise code
author Neil Muller <neil@dip.sun.ac.za>
date Tue, 29 Jan 2013 11:41:03 +0200
parents 0d5ff96527da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
1 #!/bin/bash
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
2
163
2854aa4f5ac2 Update version and build stuff.
Jeremy Thurgood <firxen@gmail.com>
parents: 102
diff changeset
3 GAME_NAME="suspended-sentence"
742
0d5ff96527da Make build scripts a bit more configurable
Neil Muller <neil@dip.sun.ac.za>
parents: 739
diff changeset
4 GAME_MOD="gamelib"
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
5
742
0d5ff96527da Make build scripts a bit more configurable
Neil Muller <neil@dip.sun.ac.za>
parents: 739
diff changeset
6 GAME_VERSION=`PYTHONPATH=. python -c "from ${GAME_MOD} import version; print version.VERSION_STR"`
0d5ff96527da Make build scripts a bit more configurable
Neil Muller <neil@dip.sun.ac.za>
parents: 739
diff changeset
7 BUILD_NAME="${GAME_NAME}-${GAME_VERSION}"
173
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
8 BUILD_FOLDER="build/${GAME_NAME}"
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
9 TARBALL_NAME="${BUILD_NAME}.tgz"
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
10
173
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
11 rm -rf ${BUILD_FOLDER}
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
12 mkdir -p ${BUILD_FOLDER} dist
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
13
742
0d5ff96527da Make build scripts a bit more configurable
Neil Muller <neil@dip.sun.ac.za>
parents: 739
diff changeset
14 cp -r COPYING README.txt run_game.py setup.py docs pyntnclick ${GAME_MOD} data ${BUILD_FOLDER}/
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
15
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
16 cd build
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
17
173
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
18 tar czf ../dist/${TARBALL_NAME} ${GAME_NAME}
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
19