]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-rpm
2 #----------------------------------------------------------------------
12 if [ $buildansi = yes ]; then
23 if ping -q -c1 -w1 $host > /dev
/null
; then
31 if [ $skiplinux != yes ]; then
36 # test if the target machine is online
37 if TestOnline
$host; then
40 # Attempt to start the host via it's coLinux host, if there is one
41 if [ $coHost != none
-a $startcohost == yes ]; then
42 if TestOnline
$coHost; then
43 echo "Attempting to start $host via coLinux on $coHost..."
44 ssh $coHost "/c/coLinux/VMs/$host.bat -d > /dev/null 2>&1 &"
46 # Give it time to boot and be ready for conenctions,
47 # and then test with ssh, limiting retries.
51 if ssh root@
$host "true" >/dev
/null
2>&1; then
52 # success! the host is ready so we can break out of the loop
57 # test if the host is ready
58 if TestOnline
$host; then
59 echo "coLinux start of $host on $coHost successful."
64 echo "The $coHost machine is offline, unable to start coLinux for $host"
69 if [ $hostAvailable = yes ]; then
70 echo "The $host machine is online, build continuing..."
72 echo "The $host machine is **OFFLINE**, skipping the binary RPM build."
77 echo "Copying source files and build script..."
78 ssh root@
$host "mkdir -p $LINUX_BUILD && rm -rf $LINUX_BUILD/*"
79 scp
$STAGING_DIR/wxPython
-src* $STAGING_DIR/wxPython.spec\
80 distrib
/all
/do-build-rpm \
81 root@
$host:$LINUX_BUILD
83 echo "Running build script on $host..."
85 ssh root@
$host "cd $LINUX_BUILD && $cmd $reltag $skipclean $VERSION $pyver $CHARTYPE"
87 echo "Fetching the results..."
88 scp
"root@$host:$LINUX_BUILD/wxPython*.i[0-9]86.rpm" $STAGING_DIR
89 ssh root@
$host "rm $LINUX_BUILD/wxPython*.i[0-9]86.rpm"
92 if [ $startedCoHost = yes ]; then
93 echo "Halting $host on $coHost..."
94 ssh root@
$host "/sbin/halt"