diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/packaging/tmp-createpackage.sh.in	Fri Apr 25 10:14:33 2014 +0000
@@ -0,0 +1,30 @@
+# Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
+# Software engineering by Intevation GmbH
+#
+# This file is Free Software under the GNU GPL (v>=2)
+# and comes with ABSOLUTELY NO WARRANTY!
+# See LICENSE.txt for details.
+
+#!/bin/bash
+
+#NSSDIR is hackish as this will be replaced by static compiling 
+# anyway
+
+NSSDIR="@NSS_INCLUDE_DIRS@/../bin/"
+MYPATH=$(dirname `readlink -f $0`)
+
+TMPDIR=$(mktemp -d)
+
+EXEFILES=$(find . -name cinst.exe -o -name trustbridge.exe -o -name mozilla.exe)
+
+cp $NSSDIR/*.dll $TMPDIR
+cp $EXEFILES $TMPDIR
+
+echo $TMPDIR
+makensis -Dfiles_dir=$TMPDIR \
+    -Dcompany="Bundesamt für Sicherheit in der Informationstechnik" \
+    -Dversion_number=@PROJECT_VERSION@ \
+    -Dsetupname="TrustBridge-@PROJECT_VERSION@.exe" \
+    -Dproductname="TrustBridge" \
+    -Dproductname_short="TrustBridge" $MYPATH/trustbridge.nsi
+rm -r $TMPDIR

http://wald.intevation.org/projects/trustbridge/