Mercurial > trustbridge
comparison packaging/tmp-createpackage.sh.in @ 495:7a8f5b85fd9a
Dynamically generate version information from HG
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 25 Apr 2014 10:14:33 +0000 |
parents | packaging/tmp-createpackage.sh@2e78d08ff46e |
children | 4f972b1f4996 |
comparison
equal
deleted
inserted
replaced
494:613fbcb5df0c | 495:7a8f5b85fd9a |
---|---|
1 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik | |
2 # Software engineering by Intevation GmbH | |
3 # | |
4 # This file is Free Software under the GNU GPL (v>=2) | |
5 # and comes with ABSOLUTELY NO WARRANTY! | |
6 # See LICENSE.txt for details. | |
7 | |
8 #!/bin/bash | |
9 | |
10 #NSSDIR is hackish as this will be replaced by static compiling | |
11 # anyway | |
12 | |
13 NSSDIR="@NSS_INCLUDE_DIRS@/../bin/" | |
14 MYPATH=$(dirname `readlink -f $0`) | |
15 | |
16 TMPDIR=$(mktemp -d) | |
17 | |
18 EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe) | |
19 | |
20 cp $NSSDIR/*.dll $TMPDIR | |
21 cp $EXEFILES $TMPDIR | |
22 | |
23 echo $TMPDIR | |
24 makensis -Dfiles_dir=$TMPDIR \ | |
25 -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \ | |
26 -Dversion_number=@PROJECT_VERSION@ \ | |
27 -Dsetupname="TrustBridge-@PROJECT_VERSION@.exe" \ | |
28 -Dproductname="TrustBridge" \ | |
29 -Dproductname_short="TrustBridge" $MYPATH/trustbridge.nsi | |
30 rm -r $TMPDIR |