diff packaging/linux-createpackage.sh.in @ 680:a5a709c6ce93

Added minimal shar based installer for linux.
author Sascha Wilde <wilde@intevation.de>
date Mon, 30 Jun 2014 18:33:26 +0200
parents
children bf87feccb26c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/packaging/linux-createpackage.sh.in	Mon Jun 30 18:33:26 2014 +0200
@@ -0,0 +1,30 @@
+#!/bin/bash
+# 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.
+
+TMPDIR=$(mktemp -d)
+
+INSTALLER="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh"
+
+EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst"
+          "@CMAKE_BINARY_DIR@/cinst/mozilla"
+          "@CMAKE_BINARY_DIR@/ui/trustbridge")
+
+# Make installation in TMPDIR, this is what we will put into the
+# shar-archive.
+echo "Using $TMPDIR for temporary installation to build installer..."
+install -d "$TMPDIR/bin"
+install "${EXEFILES[@]}" "$TMPDIR/bin" 
+
+echo "Building $INSTALLER..."
+cat "@CMAKE_BINARY_DIR@/packaging/linux-installer.inc" >"$INSTALLER"
+cd "$TMPDIR"
+shar -z -B bin/* >>"$INSTALLER"
+chmod +x "$INSTALLER"
+
+echo "Cleaning up..."
+rm -r "$TMPDIR"

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