[llvm-commits] [llvm-gcc-4.2] r141688 - /llvm-gcc-4.2/trunk/extras/buildbot-launcher

Galina Kistanova gkistanova at gmail.com
Tue Oct 11 10:56:33 PDT 2011


Author: gkistanova
Date: Tue Oct 11 12:56:33 2011
New Revision: 141688

URL: http://llvm.org/viewvc/llvm-project?rev=141688&view=rev
Log:
Reverted r141519.

Modified:
    llvm-gcc-4.2/trunk/extras/buildbot-launcher

Modified: llvm-gcc-4.2/trunk/extras/buildbot-launcher
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/extras/buildbot-launcher?rev=141688&r1=141687&r2=141688&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/extras/buildbot-launcher (original)
+++ llvm-gcc-4.2/trunk/extras/buildbot-launcher Tue Oct 11 12:56:33 2011
@@ -4,9 +4,13 @@
 set -o pipefail            # Return the first non-zero pipe command error.
 set -x                     # Print commands as they are executed
 
-# The fist 2 parameters are consumed by this script and they are:
+# The fist 4 parameters are consumed by this script and they are:
 BUILD_SCRIPT=$1            # Build script name to launch
 shift
+LLVM_SOURCE=$1             # Directory name where the LLVM source code is.
+shift
+LLVM_GCC_SOURCE=$1         # Directory name where the LLVM-GCC source code is.
+shift
 BUILD_DIR=$1               # Path to the build root directory.
 shift
 # The rest of the parameters will pass through.
@@ -14,5 +18,14 @@
 # The build script expects to be run from the build root directory.
 cd $BUILD_DIR
 
+# The build script expects source code directories in certain place with
+# certain names. Create link only if target directory or link does not exist.
+if [ ! -d $BUILD_DIR/llvm.src ] ; then
+   ln -sf $LLVM_SOURCE $BUILD_DIR/llvm.src
+fi
+if [ ! -d $BUILD_DIR/llvm-gcc.src ] ; then
+   ln -sf $LLVM_GCC_SOURCE $BUILD_DIR/llvm-gcc.src
+fi
+
 # Launch the build script with all the remaining parameters
 $BUILD_SCRIPT $@





More information about the llvm-commits mailing list