]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-chrpm
2 #----------------------------------------------------------------------
14 if [ $buildansi = yes ]; then
25 if ping -q -c1 -w1 $host > /dev
/null
; then
34 if [ $skipdeb != yes ]; then
35 # We use a chroot environment on the build machine for the debian
36 # builds, so this build is pretty simple. Just copy the tarball
37 # and a build script to the build machine, and then run
38 # do-build-deb in the chroot.
40 if TestOnline
$host; then
42 echo "The $host machine is online, build continuing..."
44 echo "Copying source files and build script..."
45 ssh root@
$host "mkdir -p $chRootRoot/$LINUX_BUILD && rm -rf $chRootRoot/$LINUX_BUILD/*"
46 scp
$STAGING_DIR/wxPython
-src* distrib
/all
/do-build-rpm $STAGING_DIR/wxPython.spec \
47 root@
$host:$chRootRoot/$LINUX_BUILD
49 ssh root@
$host "dchroot --chroot $chRootName --directory $LINUX_BUILD \"./do-build-rpm $reltag $skipclean $VERSION $pyver $CHARTYPE\""
51 echo "Fetching the results..."
52 ssh root@
$host "rm $chRootRoot/$LINUX_BUILD/do-build-rpm"
53 scp
"root@$host:$chRootRoot/$LINUX_BUILD/wxPython*.i[0-9]86.rpm" $STAGING_DIR
54 ssh root@
$host "rm $chRootRoot/$LINUX_BUILD/wxPython*.i[0-9]86.rpm"
57 echo "The $host machine is **OFFLINE**, skipping the binary RPM build."