comparison packaging/create-dist-package.sh.in @ 760:438d7c88104f

Add create-dist-package script to create a package suitable for trustbridge-admin
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 07 Jul 2014 18:50:06 +0200
parents
children fdc15f0cfdd8
comparison
equal deleted inserted replaced
759:b74d8c19eb68 760:438d7c88104f
1 #!/bin/bash
2 # Helper script to package the files expected by the -admin application
3 # Windows build is expected to live in CMAKE_SOURCE_DIR/build-windows
4 set -x
5 set -e
6
7 if [ ! -d "$WINDOWS_NSSDIR" ]; then
8 echo "ERROR: Please set WINDOWS_NSSDIR to the location of your nss binaries"
9 exit 1
10 fi
11
12 TMPD=$(mktemp -d)
13 TMPDIR=$TMPD/TrustBridge-@PROJECT_VERSION@
14 cd @CMAKE_BINARY_DIR@
15 /bin/bash packaging/linux-createpackage.sh
16 mkdir -p $TMPDIR/linux
17 mkdir -p $TMPDIR/windows
18 cp @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh $TMPDIR/linux
19 cp @CMAKE_SOURCE_DIR@/build-windows/ui/trustbridge.exe $TMPDIR/windows
20 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/cinst.exe $TMPDIR/windows
21 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/mozilla.exe $TMPDIR/windows
22 cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR
23 cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR
24 cp -r @CMAKE_SOURCE_DIR@/packaging/resources $TMPDIR/resources
25 LC_ALL="de_DE.latin-1" echo "company=Bundesamt für Sicherheit in der Informationstechnik" > $TMPDIR/meta.ini
26 echo "version_number=@PROJECT_VERSION@" >> $TMPDIR/meta.ini
27 echo "setupname=%1TrustBridge-@PROJECT_VERSION@.exe" >> $TMPDIR/meta.ini
28 echo "productname=TrustBridge" >> $TMPDIR/meta.ini
29 cp $WINDOWS_NSSDIR/*.dll $TMPDIR/windows
30 cd $TMPD
31 zip -r TrustBridge-@PROJECT_VERSION@.zip TrustBridge-@PROJECT_VERSION@
32 mv TrustBridge-@PROJECT_VERSION@.zip @CMAKE_BINARY_DIR@
33 rm -r $TMPD
34 echo "Package is: @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.zip"

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