From c707f2bbb399080db75c071c54f148b7d0d01a94 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 25 Sep 2006 04:39:12 +0000 Subject: [PATCH] Change all "Setup.sh" scripts to accept arguments and pass them along. "Setup.sh" in microcode passes those arguments to configure. --- v7/src/Setup.sh | 4 ++-- v7/src/compiler/Setup.sh | 11 +++-------- v7/src/etc/Setup.sh | 9 ++------- v7/src/microcode/Setup.sh | 6 +++--- v7/src/microcode/makegen/makeinit.sh | 4 ++-- v7/src/runtime-check/Setup.sh | 11 +++-------- 6 files changed, 15 insertions(+), 30 deletions(-) diff --git a/v7/src/Setup.sh b/v7/src/Setup.sh index 98dd091e7..d0ded2ec1 100755 --- a/v7/src/Setup.sh +++ b/v7/src/Setup.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: Setup.sh,v 1.13 2006/09/16 11:19:08 gjr Exp $ +# $Id: Setup.sh,v 1.14 2006/09/25 04:38:45 cph Exp $ # # Copyright 2000,2001,2003,2004,2006 Massachusetts Institute of Technology # @@ -50,5 +50,5 @@ for SUBDIR in 6001 compiler cref edwin imail rcs runtime runtime-check \ sf sos ssp star-parser win32 xdoc xml microcode; do echo "setting up ${SUBDIR}" maybe_link ${SUBDIR}/Setup.sh ../etc/Setup.sh - ( cd ${SUBDIR} && ./Setup.sh ) || exit 1 + ( cd ${SUBDIR} && ./Setup.sh "$@" ) || exit 1 done diff --git a/v7/src/compiler/Setup.sh b/v7/src/compiler/Setup.sh index d6b78c772..4cfaf502c 100755 --- a/v7/src/compiler/Setup.sh +++ b/v7/src/compiler/Setup.sh @@ -1,8 +1,8 @@ #!/bin/sh # -# $Id: Setup.sh,v 1.6 2003/02/14 18:48:11 cph Exp $ +# $Id: Setup.sh,v 1.7 2006/09/25 04:38:51 cph Exp $ # -# Copyright 2000 Massachusetts Institute of Technology +# Copyright 2000,2006 Massachusetts Institute of Technology # # This file is part of MIT/GNU Scheme. # @@ -24,14 +24,9 @@ # Utility to set up the MIT/GNU Scheme compiler directory. # The working directory must be the compiler directory. -if [ $# -ne 0 ]; then - echo "usage: $0" - exit 1 -fi - . ../etc/functions.sh -../etc/Setup.sh +../etc/Setup.sh "$@" for N in 1 2 3; do maybe_link machines/vax/dinstr${N}.scm instr${N}.scm diff --git a/v7/src/etc/Setup.sh b/v7/src/etc/Setup.sh index 9d256bd6a..b7fbdbc47 100755 --- a/v7/src/etc/Setup.sh +++ b/v7/src/etc/Setup.sh @@ -1,8 +1,8 @@ #!/bin/sh # -# $Id: Setup.sh,v 1.9 2003/02/14 18:48:11 cph Exp $ +# $Id: Setup.sh,v 1.10 2006/09/25 04:38:56 cph Exp $ # -# Copyright 2000 Massachusetts Institute of Technology +# Copyright 2000,2006 Massachusetts Institute of Technology # # This file is part of MIT/GNU Scheme. # @@ -24,11 +24,6 @@ # Utility to set up an MIT/GNU Scheme build directory. # The working directory must be the build directory. -if [ $# -ne 0 ]; then - echo "usage: $0" - exit 1 -fi - . ../etc/functions.sh if [ ! -f Makefile.in ]; then diff --git a/v7/src/microcode/Setup.sh b/v7/src/microcode/Setup.sh index 7fd3873cc..f5f827cb2 100755 --- a/v7/src/microcode/Setup.sh +++ b/v7/src/microcode/Setup.sh @@ -1,8 +1,8 @@ #!/bin/sh -# $Id: Setup.sh,v 1.8 2003/02/14 18:48:11 cph Exp $ +# $Id: Setup.sh,v 1.9 2006/09/25 04:39:01 cph Exp $ # -# Copyright 2000 Massachusetts Institute of Technology +# Copyright 2000,2006 Massachusetts Institute of Technology # # This file is part of MIT/GNU Scheme. # @@ -34,5 +34,5 @@ if [ ! -x configure ]; then fi ( cd cmpauxmd && make ) if [ ! -f Makefile.in ]; then - makegen/makeinit.sh + makegen/makeinit.sh "$@" fi diff --git a/v7/src/microcode/makegen/makeinit.sh b/v7/src/microcode/makegen/makeinit.sh index e839e3e37..1aaebd8c9 100755 --- a/v7/src/microcode/makegen/makeinit.sh +++ b/v7/src/microcode/makegen/makeinit.sh @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: makeinit.sh,v 1.12 2006/06/10 05:24:54 cph Exp $ +# $Id: makeinit.sh,v 1.13 2006/09/25 04:39:07 cph Exp $ # # Copyright 2000,2006 Massachusetts Institute of Technology # @@ -26,7 +26,7 @@ # generate "config.h". [ -f Makefile.in ] || touch Makefile.in -./configure +./configure "$@" # Generate "Makefile.in" from "Makefile.in.in". Requires "config.h", # because dependencies are generated by running GCC -M on the source diff --git a/v7/src/runtime-check/Setup.sh b/v7/src/runtime-check/Setup.sh index e7cea3fbb..e0a011c84 100755 --- a/v7/src/runtime-check/Setup.sh +++ b/v7/src/runtime-check/Setup.sh @@ -1,8 +1,8 @@ #!/bin/sh # -# $Id: Setup.sh,v 1.8 2003/02/14 18:48:13 cph Exp $ +# $Id: Setup.sh,v 1.9 2006/09/25 04:39:12 cph Exp $ # -# Copyright 2000,2001 Massachusetts Institute of Technology +# Copyright 2000,2001,2006 Massachusetts Institute of Technology # # This file is part of MIT/GNU Scheme. # @@ -24,14 +24,9 @@ # Utility to set up an MIT/GNU Scheme build directory. # The working directory must be the build directory. -if [ $# -ne 0 ]; then - echo "usage: $0" - exit 1 -fi - . ../etc/functions.sh -../etc/Setup.sh +../etc/Setup.sh "$@" for FNS in `cd ../runtime; ls *.scm`; do FN="`basename ${FNS} .scm`.bin" -- 2.25.1