source: scripts/build_unix.sh@ 633:cf276bb2a854

Last change on this file since 633:cf276bb2a854 was 633:cf276bb2a854, checked in by Simon Cross <hodgestar@…>, 9 years ago

Unix build script.

  • Property exe set to *
File size: 644 bytes
Line 
1#!/bin/bash
2
3GAME_NAME="nagslang"
4
5MM_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py`
6BUILD_NAME="${GAME_NAME}-${MM_VERSION}"
7BUILD_FOLDER="build/${GAME_NAME}"
8TARBALL_NAME="${BUILD_NAME}.tgz"
9
10rm -rf ${BUILD_FOLDER}
11mkdir -p ${BUILD_FOLDER} dist
12
13hg archive ${BUILD_FOLDER}/ -I LICENSE.txt -I README.txt \
14 -I setup.py -I run_game.py \
15 -I run_game.pyw \
16 -I scripts -I data -I nagslang \
17 -I tools -I pyweek_upload.py \
18 -I requirements.txt
19
20cd build
21tar czf ../dist/${TARBALL_NAME} ${GAME_NAME}
Note: See TracBrowser for help on using the repository browser.