]> git.saurik.com Git - wxWidgets.git/commitdiff
Mac and Linux build scripts.
authorKevin Ollivier <kevino@theolliviers.com>
Tue, 7 Mar 2006 06:02:42 +0000 (06:02 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Tue, 7 Mar 2006 06:02:42 +0000 (06:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/scripts/build-linux.sh [new file with mode: 0755]
distrib/scripts/build-mac.sh [new file with mode: 0755]

diff --git a/distrib/scripts/build-linux.sh b/distrib/scripts/build-linux.sh
new file mode 100755 (executable)
index 0000000..a5b8796
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash
+#----------------------------------------------------------------------
+
+set -o errexit
+
+if [ $skiplinux != yes ]; then
+    # test if the target machine is online
+    #if ping -q -c1 $WIN_HOST > /dev/null; then
+       #echo " The $WIN_HOST machine is online, Windows build continuing..."
+    #else
+       #echo "The $WIN_HOST machine is **OFFLINE**, skipping the Windows build."
+       #exit 0
+    #fi
+
+    echo "Copying source file and build script..."
+    scp -r $STAGING_DIR/* $LINUX_HOST:$LINUX_BUILD
+    
+     echo "Untarring dist on $LINUX_HOST..."
+     wxtarball=$LINUX_BUILD/wxWidgets-$BUILD_VERSION.tar.gz
+     cmd="tar xzvf"
+     ssh $LINUX_HOST "cd $LINUX_BUILD && $cmd $wxtarball"
+     
+     echo "Running build script on $LINUX_HOST..."
+     wxdir=$LINUX_BUILD/wxWidgets
+     cmd="./distrib/scripts/unix/maketarballs $wxdir $wxdir/deliver $BUILD_VERSION --wxgtk --wxmotif --wxx11 --wxbase --wxmgl --silent"
+     ssh $LINUX_HOST "cd $wxdir && chmod +x distrib/scripts/unix/maketarballs && $cmd"
+
+     echo "Fetching the results..."
+     scp "$LINUX_HOST:$wxdir/deliver/*.tar.gz "  $DIST_DIR
+     scp "$LINUX_HOST:$wxdir/deliver/*.tar.bz2 "  $DIST_DIR
+
+     echo "Done!"
+fi
\ No newline at end of file
diff --git a/distrib/scripts/build-mac.sh b/distrib/scripts/build-mac.sh
new file mode 100755 (executable)
index 0000000..7949549
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash
+#----------------------------------------------------------------------
+
+set -o errexit
+
+if [ $skiplinux != yes ]; then
+    # test if the target machine is online
+    #if ping -q -c1 $WIN_HOST > /dev/null; then
+       #echo " The $WIN_HOST machine is online, Windows build continuing..."
+    #else
+       #echo "The $WIN_HOST machine is **OFFLINE**, skipping the Windows build."
+       #exit 0
+    #fi
+
+    echo "Copying source file and build script..."
+    scp -r $STAGING_DIR/* $MAC_HOST:$MAC_BUILD
+    
+     echo "Untarring dist on $MAC_HOST..."
+     wxtarball=$MAC_BUILD/wxWidgets-$BUILD_VERSION.tar.gz
+     cmd="tar xzvf"
+     ssh $MAC_HOST "cd $MAC_BUILD && $cmd $wxtarball"
+     
+     echo "Running build script on $MAC_HOST..."
+     wxdir=$MAC_BUILD/wxWidgets
+     cmd="./distrib/scripts/mac/tardist $wxdir $wxdir/deliver $BUILD_VERSION --wxmac --wxall --silent"
+     ssh $MAC_HOST "cd $wxdir && chmod +x distrib/scripts/mac/tardist && $cmd"
+
+     echo "Fetching the results..."
+     scp "$MAC_HOST:$wxdir/deliver/*.tar.gz "  $DIST_DIR
+     scp "$MAC_HOST:$wxdir/deliver/*.tar.bz2 "  $DIST_DIR
+
+     echo "Done!"
+fi
\ No newline at end of file