comparison packaging/create-dist-package.sh.in @ 885:1cc85fd3daa5

(issue70) Handle i386 and amd64 packages
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 08 Aug 2014 10:56:24 +0200
parents 08065bb5de7c
children accda55ae053
comparison
equal deleted inserted replaced
884:6abf8e77cd5f 885:1cc85fd3daa5
7 if [ ! -x `which wine` ]; then 7 if [ ! -x `which wine` ]; then
8 echo "ERROR: Could not find wine." 8 echo "ERROR: Could not find wine."
9 exit 1 9 exit 1
10 fi 10 fi
11 11
12 if [ ! -f @CMAKE_SOURCE_DIR@/build-windows/Makefile ]; then
13 echo "Could not find a windows build in: @CMAKE_SOURCE_DIR@/build-windows "
14 exit 1
15 fi
16
17 if [ ! -f @CMAKE_SOURCE_DIR@/build-i386/Makefile ]; then
18 echo "Could not find a i386 build in: @CMAKE_SOURCE_DIR@/build-i386 "
19 exit 1
20 fi
21
12 TMPD=$(mktemp -d) 22 TMPD=$(mktemp -d)
13 TMPDIR=$TMPD/TrustBridge-@PROJECT_VERSION@ 23 TMPDIR=$TMPD/TrustBridge-@PROJECT_VERSION@
24 cd @CMAKE_SOURCE_DIR@/build-windows
25 echo "Updating windows build"
26 make
27 cd @CMAKE_SOURCE_DIR@/build-i386
28 echo "Building x86 package"
29 make
30 /bin/bash packaging/linux-createpackage.sh
14 cd @CMAKE_BINARY_DIR@ 31 cd @CMAKE_BINARY_DIR@
32 echo "Building amd64 package"
15 /bin/bash packaging/linux-createpackage.sh 33 /bin/bash packaging/linux-createpackage.sh
16 mkdir -p $TMPDIR/linux 34 mkdir -p $TMPDIR/linux
17 mkdir -p $TMPDIR/windows 35 mkdir -p $TMPDIR/windows
18 mv @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh $TMPDIR/linux 36 mv @CMAKE_BINARY_DIR@/TrustBridge-@PROJECT_VERSION@.sh \
37 $TMPDIR/linux/TrustBridge-@PROJECT_VERSION@-amd64.sh
38 mv @CMAKE_SOURCE_DIR@/build-i386/TrustBridge-@PROJECT_VERSION@.sh \
39 $TMPDIR/linux/TrustBridge-@PROJECT_VERSION@-i386.sh
19 cp @CMAKE_SOURCE_DIR@/build-windows/ui/trustbridge.exe $TMPDIR/windows 40 cp @CMAKE_SOURCE_DIR@/build-windows/ui/trustbridge.exe $TMPDIR/windows
20 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/cinst.exe $TMPDIR/windows 41 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/cinst.exe $TMPDIR/windows
21 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/mozilla.exe $TMPDIR/windows 42 cp @CMAKE_SOURCE_DIR@/build-windows/cinst/mozilla.exe $TMPDIR/windows
22 cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR 43 cp @CMAKE_SOURCE_DIR@/packaging/filelist.nsh $TMPDIR
23 cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR 44 cp @CMAKE_SOURCE_DIR@/packaging/trustbridge.nsi $TMPDIR

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