Mercurial > trustbridge
diff packaging/linux-createpackage.sh.in @ 972:8be2f510adbf
(issue91) Make installer architecture aware.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 28 Aug 2014 17:51:22 +0200 |
parents | 15f7b3ebf21b |
children | 491327689ffc |
line wrap: on
line diff
--- a/packaging/linux-createpackage.sh.in Thu Aug 28 15:03:10 2014 +0200 +++ b/packaging/linux-createpackage.sh.in Thu Aug 28 17:51:22 2014 +0200 @@ -9,12 +9,20 @@ TMPDIR=$(mktemp -d) TMPSHAR=$(mktemp "@CMAKE_BINARY_DIR@/shar.XXXXXXXXXX") +ARCH="$1" + +if [ "$ARCH" != "i386" -a "$ARCH" != "x86_64" ]; then + echo "Usage $0 <architecture>" + echo "with archtiecture either i386 or x86_64" +fi + INSTALLER="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh" EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst" "@CMAKE_BINARY_DIR@/cinst/mozilla" "@CMAKE_BINARY_DIR@/ui/trustbridge" "@CMAKE_BINARY_DIR@/ui/trustbridge-tray-starter.sh") + ICON="@CMAKE_SOURCE_DIR@/ui/img/logo-128.png" HELPFILES=$(find @CMAKE_BINARY_DIR@/manuals/help-manual/html \ -maxdepth 1 -type f -printf "%p \n") @@ -74,6 +82,7 @@ sed -i "s/###HELPNAMES_SOURCES###/${helpnames_sources}/" "$INSTALLER" sed -i "s/###HELPNAMES_STATIC###/${helpnames_static}/" "$INSTALLER" sed -i "s/###HELPNAMES_IMG###/${helpnames_img}/" $INSTALLER +sed -i "s/###ARCH###/${ARCH}/" $INSTALLER chmod +x "$INSTALLER" echo "Signing"