]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-deb
ignore warning 4535 for VC8 too as it still seems to be harmless
[wxWidgets.git] / wxPython / distrib / all / build-deb
CommitLineData
67071773
RD
1#!/bin/bash
2#----------------------------------------------------------------------
3
4set -o errexit
5#set -o xtrace
6
7host=$1
8chRootRoot=$2
9chRootName=$3
10
11
12function TestOnline {
13 local host=$1
14 local message=$2
15
16 if ping -q -c1 -w1 $host > /dev/null; then
17 return 0
18 else
19 return 1
20 fi
21}
22
23
24
25if [ $skipdeb != yes ]; then
6ca74490 26 # We use a chroot environment on the build machine for the debian
67071773
RD
27 # builds, so this build is pretty simple. Just copy the tarball
28 # and a build script to /tmp, and then run do-build-deb in the
29 # chroot.
30
31 if TestOnline $host; then
32
33 echo "The $host machine is online, build continuing..."
34
35 echo "Copying source files and build script..."
36 ssh root@$host "mkdir -p $chRootRoot/$LINUX_BUILD && rm -rf $chRootRoot/$LINUX_BUILD/*"
37 scp $STAGING_DIR/wxPython-src* distrib/all/do-build-deb \
38 root@$host:$chRootRoot/$LINUX_BUILD
39
40 ssh root@$host "dchroot --chroot $chRootName --directory $LINUX_BUILD \"do-build-deb $VERSION $VER2\""
41
42 echo "Fetching the results..."
43 mkdir -p $STAGING_DIR/$chRootName
44 ssh root@$host "rm $chRootRoot/$LINUX_BUILD/do-build-deb"
45 scp "root@$host:$chRootRoot/$LINUX_BUILD/*" $STAGING_DIR/$chRootName
46 ssh root@$host "rm $chRootRoot/$LINUX_BUILD/*"
47 echo "Done!"
48 else
49 echo "The $host machine is **OFFLINE**, skipping the binary DEB build."
50 exit 0
51 fi
52fi
53