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