CMUCL commit: src/tools (cross-build-world.sh)

Raymond Toy rtoy at common-lisp.net
Wed Jul 21 15:31:27 CEST 2010


    Date: Wednesday, July 21, 2010 @ 09:31:27
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/tools

Modified: cross-build-world.sh

Add -G option to allow specifying GNU make in case "make" is not GNU make.


----------------------+
 cross-build-world.sh |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)


Index: src/tools/cross-build-world.sh
diff -u src/tools/cross-build-world.sh:1.6 src/tools/cross-build-world.sh:1.7
--- src/tools/cross-build-world.sh:1.6	Mon Jul 19 19:08:37 2010
+++ src/tools/cross-build-world.sh	Wed Jul 21 09:31:27 2010
@@ -1,20 +1,23 @@
 #!/bin/sh
 
 usage() {
-    echo "cross-build-world.sh [-crl] [-B file] target-dir cross-dir cross-compiler-script [build-binary [flags]]"
+    echo "cross-build-world.sh [-crl] [-B file] [-G Gnumake] target-dir cross-dir cross-compiler-script [build-binary [flags]]"
     echo "  -c      Clean target and cross directories before compiling"
     echo "  -r      Recompile lisp runtime"
     echo "  -l      Load cross-compiled kernel to make a new lisp kernel"
     echo "  -B file Use this as the cross bootstrap file." 
+    echo "  -G make Specifies the name of GNU make"
 }
 
-while getopts "crlB:" arg
+MAKE=make
+while getopts "crlB:G:" arg
 do
     case $arg in
       c) CLEAN_DIR=yes ;;
       r) BUILD_RUNTIME=yes ;;
       l) LOAD_KERNEL=yes ;;
       B) BOOTSTRAP=$OPTARG ;;
+      B) MAKE=$OPTARG ;;
       h | \?) usage; exit 1 ;;
     esac
 done
@@ -124,7 +127,7 @@
 
 if [ "$BUILD_RUNTIME" = "yes" ]; then
     echo Building runtime
-    (cd $TARGET/lisp; make)
+    (cd $TARGET/lisp; ${MAKE})
 fi
 
 if [ "$LOAD_KERNEL" = "yes" ]; then



More information about the cmucl-commit mailing list