comparison packaging/linux-createpackage.sh.in @ 872:02e357826417

(issue81) Add desktop file
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 Aug 2014 18:56:23 +0200
parents 3a9b0c75f5a6
children 4087e489f569
comparison
equal deleted inserted replaced
871:4efd6378c001 872:02e357826417
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 ICON="@CMAKE_SOURCE_DIR@/ui/img/logo.png"
18 19
19 L10N_DE_FILE="@CMAKE_BINARY_DIR@/packaging/linux-installer.l10n-de" 20 L10N_DE_FILE="@CMAKE_BINARY_DIR@/packaging/linux-installer.l10n-de"
20 21
21 # Make installation in TMPDIR, this is what we will put into the 22 # Make installation in TMPDIR, this is what we will put into the
22 # shar-archive. 23 # shar-archive.
23 echo "Using $TMPDIR for temporary installation to build installer..." 24 echo "Using $TMPDIR for temporary installation to build installer..."
24 install -d "$TMPDIR/bin" 25 install -d "$TMPDIR/bin"
26 install -d "$TMPDIR/share/pixmaps/trustbridge"
25 install "${EXEFILES[@]}" "$TMPDIR/bin" 27 install "${EXEFILES[@]}" "$TMPDIR/bin"
28 install "$ICON" "$TMPDIR/share/pixmaps/trustbridge/trustbridge.png"
26 29
27 echo "Creating shar archive ..." 30 echo "Creating shar archive ..."
28 cd "$TMPDIR" 31 cd "$TMPDIR"
29 shar -z -B bin/* | sed 's/^exit 0//' >>"$TMPSHAR" 32 shar -z -B bin/* share/pixmaps/trustbridge/trustbridge.png | sed 's/^exit 0//' >>"$TMPSHAR"
30 33
31 echo "Building $INSTALLER..." 34 echo "Building $INSTALLER..."
32 cp "@CMAKE_BINARY_DIR@/packaging/linux-installer.inc" "$INSTALLER" 35 cp "@CMAKE_BINARY_DIR@/packaging/linux-installer.inc" "$INSTALLER"
33 binnames="" 36 binnames=""
34 for file in "${EXEFILES[@]}" ; do 37 for file in "${EXEFILES[@]}" ; do
35 binnames="`basename $file` $binnames" 38 binnames="`basename $file` $binnames"
36 done 39 done
37 sed -i "s/###BINNAMES###/${binnames}/" "$INSTALLER" 40 sed -i "s/###BINNAMES###/${binnames}/" "$INSTALLER"
41 sed -i "s/###ICONNAME###/trustbridge.png/" "$INSTALLER"
38 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER" 42 sed -i "/###SHAR###/r $TMPSHAR" "$INSTALLER"
39 sed -i "/###L10N_DE###/r $L10N_DE_FILE" "$INSTALLER" 43 sed -i "/###L10N_DE###/r $L10N_DE_FILE" "$INSTALLER"
40 chmod +x "$INSTALLER" 44 chmod +x "$INSTALLER"
41 45
42 echo "Cleaning up..." 46 echo "Cleaning up..."

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