comparison 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
comparison
equal deleted inserted replaced
678:237af0c82454 680:a5a709c6ce93
1 #!/bin/bash
2 # Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
3 # Software engineering by Intevation GmbH
4 #
5 # This file is Free Software under the GNU GPL (v>=2)
6 # and comes with ABSOLUTELY NO WARRANTY!
7 # See LICENSE.txt for details.
8
9 TMPDIR=$(mktemp -d)
10
11 INSTALLER="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh"
12
13 EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst"
14 "@CMAKE_BINARY_DIR@/cinst/mozilla"
15 "@CMAKE_BINARY_DIR@/ui/trustbridge")
16
17 # Make installation in TMPDIR, this is what we will put into the
18 # shar-archive.
19 echo "Using $TMPDIR for temporary installation to build installer..."
20 install -d "$TMPDIR/bin"
21 install "${EXEFILES[@]}" "$TMPDIR/bin"
22
23 echo "Building $INSTALLER..."
24 cat "@CMAKE_BINARY_DIR@/packaging/linux-installer.inc" >"$INSTALLER"
25 cd "$TMPDIR"
26 shar -z -B bin/* >>"$INSTALLER"
27 chmod +x "$INSTALLER"
28
29 echo "Cleaning up..."
30 rm -r "$TMPDIR"

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