comparison 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
comparison
equal deleted inserted replaced
971:d3258a6faedd 972:8be2f510adbf
7 # See LICENSE.txt for details. 7 # See LICENSE.txt for details.
8 8
9 TMPDIR=$(mktemp -d) 9 TMPDIR=$(mktemp -d)
10 TMPSHAR=$(mktemp "@CMAKE_BINARY_DIR@/shar.XXXXXXXXXX") 10 TMPSHAR=$(mktemp "@CMAKE_BINARY_DIR@/shar.XXXXXXXXXX")
11 11
12 ARCH="$1"
13
14 if [ "$ARCH" != "i386" -a "$ARCH" != "x86_64" ]; then
15 echo "Usage $0 <architecture>"
16 echo "with archtiecture either i386 or x86_64"
17 fi
18
12 INSTALLER="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh" 19 INSTALLER="@CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh"
13 20
14 EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst" 21 EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst"
15 "@CMAKE_BINARY_DIR@/cinst/mozilla" 22 "@CMAKE_BINARY_DIR@/cinst/mozilla"
16 "@CMAKE_BINARY_DIR@/ui/trustbridge" 23 "@CMAKE_BINARY_DIR@/ui/trustbridge"
17 "@CMAKE_BINARY_DIR@/ui/trustbridge-tray-starter.sh") 24 "@CMAKE_BINARY_DIR@/ui/trustbridge-tray-starter.sh")
25
18 ICON="@CMAKE_SOURCE_DIR@/ui/img/logo-128.png" 26 ICON="@CMAKE_SOURCE_DIR@/ui/img/logo-128.png"
19 HELPFILES=$(find @CMAKE_BINARY_DIR@/manuals/help-manual/html \ 27 HELPFILES=$(find @CMAKE_BINARY_DIR@/manuals/help-manual/html \
20 -maxdepth 1 -type f -printf "%p \n") 28 -maxdepth 1 -type f -printf "%p \n")
21 HELPFILES_STATIC=$(find @CMAKE_BINARY_DIR@/manuals/help-manual/html/_static \ 29 HELPFILES_STATIC=$(find @CMAKE_BINARY_DIR@/manuals/help-manual/html/_static \
22 -maxdepth 1 -type f -printf "%p \n") 30 -maxdepth 1 -type f -printf "%p \n")
72 sed -i "/###L10N_DE###/r $L10N_DE_FILE" "$INSTALLER" 80 sed -i "/###L10N_DE###/r $L10N_DE_FILE" "$INSTALLER"
73 sed -i "s/###HELPNAMES###/${helpnames}/" "$INSTALLER" 81 sed -i "s/###HELPNAMES###/${helpnames}/" "$INSTALLER"
74 sed -i "s/###HELPNAMES_SOURCES###/${helpnames_sources}/" "$INSTALLER" 82 sed -i "s/###HELPNAMES_SOURCES###/${helpnames_sources}/" "$INSTALLER"
75 sed -i "s/###HELPNAMES_STATIC###/${helpnames_static}/" "$INSTALLER" 83 sed -i "s/###HELPNAMES_STATIC###/${helpnames_static}/" "$INSTALLER"
76 sed -i "s/###HELPNAMES_IMG###/${helpnames_img}/" $INSTALLER 84 sed -i "s/###HELPNAMES_IMG###/${helpnames_img}/" $INSTALLER
85 sed -i "s/###ARCH###/${ARCH}/" $INSTALLER
77 86
78 chmod +x "$INSTALLER" 87 chmod +x "$INSTALLER"
79 echo "Signing" 88 echo "Signing"
80 @CMAKE_SOURCE_DIR@/ui/tests/append-sig.sh @CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.key \ 89 @CMAKE_SOURCE_DIR@/ui/tests/append-sig.sh @CMAKE_SOURCE_DIR@/ui/tests/data/codesign/codesigning.key \
81 $INSTALLER ${INSTALLER}_signed 90 $INSTALLER ${INSTALLER}_signed

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