Mercurial > mamba
annotate scripts/makensis @ 515:f3e69e59345f
Remove numeric keypad TODO until it can be reproduced on another machine.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 18 Sep 2011 00:29:26 +0200 |
parents | 243b6f6ced3b |
children |
rev | line source |
---|---|
460 | 1 #!/bin/sh |
502
243b6f6ced3b
Remove having to specify nsis file.
Simon Cross <hodgestar@gmail.com>
parents:
468
diff
changeset
|
2 # Usage: makensis |
460 | 3 |
502
243b6f6ced3b
Remove having to specify nsis file.
Simon Cross <hodgestar@gmail.com>
parents:
468
diff
changeset
|
4 NSI_FILE="`dirname $0`/mamba.nsi" |
460 | 5 MM_VERSION=`sed -ne 's/VERSION_STR = "\(.*\)"/\1/p' setup.py` |
6 TMP_NSI="$NSI_FILE.tmp" | |
7 | |
468 | 8 # We include the pre-SP1 version of the MS redistibutable package - there are |
9 # contradictory reports of whether the SP1 release will work with python 2.6, | |
10 # so I haven't tested it. Thiis version works for me | |
11 # This is all for the 32 bit version - things will need to be redone for | |
12 # 64 bit support. | |
13 if [ ! -f "dist/vcredist_x86.exe" ]; then | |
14 echo "Please copy the required vcredist_x86.exe version into dist/" | |
15 echo "(version downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1b)" | |
16 exit | |
17 else | |
18 # md5sum from 2011-06-25 - MS haven't changed this package in some | |
19 # time, so hopefully this will stay valid | |
20 EXPECTED="b936f0f378b9a35489353e878154e899" | |
21 MD5=`md5sum dist/vcredist_x86.exe | cut -d " " -f 1` | |
22 if [ "$MD5" != "$EXPECTED" ]; then | |
23 echo "Unexpected md5sum for vcredist_x86.exe" | |
24 echo "expected $EXPECTED, got $MD5" | |
25 exit | |
26 fi | |
27 fi | |
28 | |
460 | 29 cp "$NSI_FILE" "$TMP_NSI" |
30 sed -i -e "s#\\(\\s*!define MM_VERSION\\).*#\\1 \"$MM_VERSION\"#" "$TMP_NSI" | |
31 makensis "$TMP_NSI" | |
32 rm "$TMP_NSI" |