comparison packaging/linux-createpackage.sh.in @ 795:3a9b0c75f5a6

Added i18n code and german l10n to linux installer.
author Sascha Wilde <wilde@intevation.de>
date Tue, 15 Jul 2014 13:24:26 +0200
parents ea8d13590cbd
children 02e357826417
comparison
equal deleted inserted replaced
794:fdc15f0cfdd8 795:3a9b0c75f5a6
13 13
14 EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst" 14 EXEFILES=("@CMAKE_BINARY_DIR@/cinst/cinst"
15 "@CMAKE_BINARY_DIR@/cinst/mozilla" 15 "@CMAKE_BINARY_DIR@/cinst/mozilla"
16 "@CMAKE_BINARY_DIR@/ui/trustbridge" 16 "@CMAKE_BINARY_DIR@/ui/trustbridge"
17 "@CMAKE_BINARY_DIR@/ui/trustbridge-tray-starter.sh") 17 "@CMAKE_BINARY_DIR@/ui/trustbridge-tray-starter.sh")
18
19 L10N_DE_FILE="@CMAKE_BINARY_DIR@/packaging/linux-installer.l10n-de"
18 20
19 # Make installation in TMPDIR, this is what we will put into the 21 # Make installation in TMPDIR, this is what we will put into the
20 # shar-archive. 22 # shar-archive.
21 echo "Using $TMPDIR for temporary installation to build installer..." 23 echo "Using $TMPDIR for temporary installation to build installer..."
22 install -d "$TMPDIR/bin" 24 install -d "$TMPDIR/bin"
32 for file in "${EXEFILES[@]}" ; do 34 for file in "${EXEFILES[@]}" ; do
33 binnames="`basename $file` $binnames" 35 binnames="`basename $file` $binnames"
34 done 36 done
35 sed -i "s/###BINNAMES###/${binnames}/" "$INSTALLER" 37 sed -i "s/###BINNAMES###/${binnames}/" "$INSTALLER"
36 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER" 38 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER"
39 sed -i "/###L10N_DE###/r $L10N_DE_FILE" "$INSTALLER"
37 chmod +x "$INSTALLER" 40 chmod +x "$INSTALLER"
38 41
39 echo "Cleaning up..." 42 echo "Cleaning up..."
40 rm -r "$TMPDIR" 43 rm -r "$TMPDIR"
41 rm "$TMPSHAR" 44 rm "$TMPSHAR"

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