]>
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
15 if [ $pyver = config
]; then
24 if ping -q -c1 -w1 $host > /dev
/null
; then
32 if [ $skiplinux != yes ]; then
37 # test if the target machine is online
38 if TestOnline
$host; then
41 # Attempt to start the host via it's coLinux host, if there is one
42 if [ $coHost != none
-a $startcohost == yes ]; then
43 if TestOnline
$coHost; then
44 echo "Attempting to start $host via coLinux on $coHost..."
45 ssh $coHost "/c/coLinux/VMs/$host.bat -d > /dev/null 2>&1 &"
47 # Give it time to boot and be ready for conenctions,
48 # and then test with ssh, limiting retries.
52 if ssh root@
$host "true" >/dev
/null
2>&1; then
53 # success! the host is ready so we can break out of the loop
58 # test if the host is ready
59 if TestOnline
$host; then
60 echo "coLinux start of $host on $coHost successful."
65 echo "The $coHost machine is offline, unable to start coLinux for $host"
70 if [ $hostAvailable = yes ]; then
71 echo "The $host machine is online, build continuing..."
73 echo "The $host machine is **OFFLINE**, skipping the binary RPM build."
78 echo "Copying source files and build script..."
79 ssh root@
$host "mkdir -p $LINUX_BUILD && rm -rf $LINUX_BUILD/*"
80 scp
$STAGING_DIR/wxPython
-src* $STAGING_DIR/wxPython.spec\
81 distrib
/all
/do-build-rpm \
82 root@
$host:$LINUX_BUILD
84 echo "Running build script on $host..."
86 ssh root@
$host "cd $LINUX_BUILD && $cmd $reltag $skipclean $VERSION $pyver"
88 echo "Fetching the results..."
89 scp
"root@$host:$LINUX_BUILD/wxPython*.i[0-9]86.rpm" $STAGING_DIR
90 ssh root@
$host "rm $LINUX_BUILD/wxPython*.i[0-9]86.rpm"
93 if [ $startedCoHost = yes ]; then
94 echo "Halting $host on $coHost..."
95 ssh root@
$host "/sbin/halt"