]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-rpm
2 #----------------------------------------------------------------------
6 # read the config variables from the file given on the command line
12 shift;shift;shift;shift
20 if ping -q -c1 -w1 $host > /dev
/null
; then
28 if [ $skiplinux != yes ]; then
33 # test if the target machine is online
34 if TestOnline
$host; then
37 # Attempt to start the host via it's coLinux host, if there is one
38 if [ $coHost != none
]; then
39 if TestOnline
$coHost; then
40 echo "Attempting to start $host via coLinux on $coHost..."
41 ssh $coHost "/c/coLinux/VMs/$host.bat -d > /dev/null 2>&1 &"
43 # Give it time to boot and be ready for conenctions,
44 # and then test with ssh, limiting retries.
48 if ssh root@
$host "true" >/dev
/null
2>&1; then
49 # success! the host is ready so we can break out of the loop
54 # test if the host is ready
55 if TestOnline
$host; then
56 echo "coLinux start of $host on $coHost successful."
61 echo "The $coHost machine is offline, unable to start coLinux for $host"
66 if [ $hostAvailable = yes ]; then
67 echo "The $host machine is online, build continuing..."
69 echo "The $host machine is **OFFLINE**, skipping the binary RPM build."
74 echo "Copying source files and build script..."
75 ssh root@
$host "mkdir -p $LINUX_BUILD && rm -rf $LINUX_BUILD/*"
76 scp
$STAGING_DIR/wxPython
-src* $STAGING_DIR/wxPython.spec\
77 distrib
/all
/do-build-rpm \
78 root@
$host:$LINUX_BUILD
80 echo "Running build script on $host..."
82 ssh root@
$host "cd $LINUX_BUILD && $cmd $reltag $skipclean $VERSION $pyver"
84 echo "Fetching the results..."
85 scp
"root@$host:$LINUX_BUILD/wxPython*.i[0-9]86.rpm" $STAGING_DIR
86 ssh root@
$host "rm $LINUX_BUILD/wxPython*.i[0-9]86.rpm"
89 if [ $startedCoHost = yes ]; then
90 echo "Halting $host on $coHost..."
91 ssh root@
$host "/sbin/halt"