[PATCH 3 of 5] Add create-dist-package script to create a package suitable for trustbridge-admin

Wald Commits scm-commit at wald.intevation.org
Mon Jul 7 18:56:00 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404751806 -7200
# Node ID 438d7c88104ff86df0d069755ba82045d1bf0710
# Parent  b74d8c19eb68baa912274b64aa118728fa72d980
Add create-dist-package script to create a package suitable for trustbridge-admin

diff -r b74d8c19eb68 -r 438d7c88104f CMakeLists.txt
--- a/CMakeLists.txt	Mon Jul 07 18:35:20 2014 +0200
+++ b/CMakeLists.txt	Mon Jul 07 18:50:06 2014 +0200
@@ -117,7 +117,8 @@
 get_filename_component(NSS_BASE_DIR ${NSS_BASE_DIR} PATH)
 
 set(NSS_BASE_DIR "${NSS_BASE_DIR}/..")
-configure_file (packaging/tmp-createpackage.sh.in packaging/tmp-createpackage.sh)
+configure_file (packaging/tmp-createpackage.sh.in packaging/tmp-createpackage.sh @ONLY)
+configure_file (packaging/create-dist-package.sh.in packaging/create-dist-package.sh @ONLY)
 configure_file (packaging/linux-createpackage.sh.in packaging/linux-createpackage.sh @ONLY)
 configure_file (packaging/linux-installer.inc.in packaging/linux-installer.inc @ONLY)
 
diff -r b74d8c19eb68 -r 438d7c88104f packaging/create-dist-package.sh.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/packaging/create-dist-package.sh.in	Mon Jul 07 18:50:06 2014 +0200
@@ -0,0 +1,34 @@
+#!/bin/bash
+# Helper script to package the files expected by the -admin application
+# Windows build is expected to live in CMAKE_SOURCE_DIR/build-windows
+set -x
+set -e
+
+if [ ! -d "$WINDOWS_NSSDIR" ]; then
+    echo "ERROR: Please set WINDOWS_NSSDIR to the location of your nss binaries"
+    exit 1
+fi
+
+TMPD=$(mktemp -d)
+TMPDIR=$TMPD/TrustBridge- at PROJECT_VERSION@
+cd @CMAKE_BINARY_DIR@
+/bin/bash packaging/linux-createpackage.sh
+mkdir -p $TMPDIR/linux
+mkdir -p $TMPDIR/windows
+cp @CMAKE_BINARY_DIR@/TrustBridge- at PROJECT_VERSION@.sh $TMPDIR/linux
+cp @CMAKE_SOURCE_DIR@/build-windows/ui/trustbridge.exe $TMPDIR/windows
+cp @CMAKE_SOURCE_DIR@/build-windows/cinst/cinst.exe $TMPDIR/windows
+cp @CMAKE_SOURCE_DIR@/build-windows/cinst/mozilla.exe $TMPDIR/windows
+cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR
+cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR
+cp -r @CMAKE_SOURCE_DIR@/packaging/resources $TMPDIR/resources
+LC_ALL="de_DE.latin-1" echo "company=Bundesamt für Sicherheit in der Informationstechnik" > $TMPDIR/meta.ini
+echo "version_number=@PROJECT_VERSION@" >>  $TMPDIR/meta.ini
+echo "setupname=%1TrustBridge- at PROJECT_VERSION@.exe" >> $TMPDIR/meta.ini
+echo "productname=TrustBridge" >> $TMPDIR/meta.ini
+cp $WINDOWS_NSSDIR/*.dll $TMPDIR/windows
+cd $TMPD
+zip -r TrustBridge- at PROJECT_VERSION@.zip TrustBridge- at PROJECT_VERSION@
+mv TrustBridge- at PROJECT_VERSION@.zip @CMAKE_BINARY_DIR@
+rm -r $TMPD
+echo "Package is: @CMAKE_BINARY_DIR@/TrustBridge- at PROJECT_VERSION@.zip"


More information about the Trustbridge-commits mailing list