annotate 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
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"
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
4
173
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
5 SS_VERSION=`PYTHONPATH=. python -c "from gamelib import version; print version.VERSION_STR"`
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
6 BUILD_NAME="${GAME_NAME}-${SS_VERSION}"
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
7 BUILD_FOLDER="build/${GAME_NAME}"
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
8 TARBALL_NAME="${BUILD_NAME}.tgz"
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
9
173
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
10 rm -rf ${BUILD_FOLDER}
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
11 mkdir -p ${BUILD_FOLDER} dist
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
12
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
13 cp -r COPYING README.txt run_game.py setup.py gamelib Resources ${BUILD_FOLDER}/
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
14
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
15 cd build
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
16
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
17 # Add albow to our game
61
145b936824f0 Minor build script fixes.
Jeremy Thurgood <firxen@gmail.com>
parents: 59
diff changeset
18 unzip ../deps/Albow-2.1.0.zip > /dev/null
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
19 mv Albow-2.1.0/albow ${GAME_NAME}
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
20 rm -rf Albow-2.1.0
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
21
173
e77e331c874b Update *nix build script to version tarball.
Jeremy Thurgood <firxen@gmail.com>
parents: 163
diff changeset
22 tar czf ../dist/${TARBALL_NAME} ${GAME_NAME}
5
0af30585e1b4 Some "build" scripts.
Jeremy Thurgood <firxen@gmail.com>
parents:
diff changeset
23