for SUBDIR in ${INSTALLED_SUBDIRS} ${OTHER_SUBDIRS}; do
echo "setting up ${SUBDIR}"
maybe_link ${SUBDIR}/Setup.sh ../etc/Setup.sh
- (cd ${SUBDIR} && ./Setup.sh ${@:+"${@}"})
+ (cd ${SUBDIR} && ./Setup.sh ${1+"$@"})
done
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode -- "${@}" <<\EOF
+${MIT_SCHEME_EXE} --batch-mode -- ${1+"$@"} <<\EOF
(let ((name (car (command-line))))
(let ((shim.c-prefix (string-append name "-shim.c,"))
(const.c-prefix (string-append name "-const.c,")))
. ../etc/functions.sh
-../etc/Setup.sh ${@:+"${@}"}
+../etc/Setup.sh ${1+"$@"}
GEN_NONCE=${AUXDIR}/gen-nonce
EXTRACT_DECLS=${AUXDIR}/extract-liarc-decls
-"${EXTRACT_DECLS}" "${@}" > "${SYSTEM}.h"
+"${EXTRACT_DECLS}" ${1+"$@"} > "${SYSTEM}.h"
cat <<EOF > "${SYSTEM}.c"
run_configure ()
{
- run_cmd ./configure "${@}"
+ run_cmd ./configure ${1+"$@"}
}
run_make ()
{
- run_cmd make "${@}"
+ run_cmd make ${1+"$@"}
}
run_cmd_in_dir ()
{
FILES=
DIRS=
- for FN in "${@}"; do
+ for FN in ${1+"$@"}; do
if [ -L "${FN}" ]; then
:
elif [ -f "${FN}" ]; then
#!/bin/bash
-exec /Applications/MIT\:GNU\ Scheme.app/Contents/Resources/mit-scheme "${@}"
+exec /Applications/MIT\:GNU\ Scheme.app/Contents/Resources/mit-scheme ${1+"$@"}
TARGET=${1}
shift
-for SUBDIR in "${@}"; do
+for SUBDIR in ${1+"$@"}; do
run_cmd_in_dir "${SUBDIR}" make "${TARGET}"
done
export MIT_SCHEME_EXE
run_cmd ./Setup.sh
-run_configure --enable-native-code=c "${@}"
+run_configure --enable-native-code=c ${1+"$@"}
run_make liarc-dist
. etc/functions.sh
FASTP=no
-for ARG in "${@}"; do
+for ARG in ${1+"$@"}; do
case ${ARG} in
--help|--help=*|--version)
FASTP=yes
done
if [ ${FASTP} = yes ]; then
- exec ./configure "${@}"
+ exec ./configure ${1+"$@"}
fi
if [ ! -f runtime/runtime-unx.c ]; then
--disable-host-scheme-test
run_make stamp_install-liarc-boot-compiler c-clean distclean
-run_configure --enable-native-code=c --disable-host-scheme-test "${@}"
+run_configure --enable-native-code=c --disable-host-scheme-test ${1+"$@"}
run_make stamp_compile-liarc-bundles build-bands clean-boot-root
FASTP=no
NATIVE_CODE=
-for ARG in "${@}"; do
+for ARG in ${1+"$@"}; do
case ${ARG} in
--help|--help=*|--version)
FASTP=yes
done
if [ ${FASTP} = yes ]; then
- exec ./configure "${@}"
+ exec ./configure ${1+"$@"}
fi
: ${MIT_SCHEME_EXE:=mit-scheme-c}
run_make stamp_install-native-boot-compiler c-clean distclean
-run_configure "${@}"
+run_configure ${1+"$@"}
run_make stamp_native-compile-scheme build-bands clean-boot-root
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode -- "${@}" <<\EOF
+${MIT_SCHEME_EXE} --batch-mode -- ${1+"$@"} <<\EOF
(let ((name (car (command-line))))
(let ((shim.c-prefix (string-append name "-shim.c,"))
(const.c-prefix (string-append name "-const.c,")))
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode -- "${@}" <<\EOF
+${MIT_SCHEME_EXE} --batch-mode -- ${1+"$@"} <<\EOF
(let ((name (car (command-line))))
(let ((shim.c-prefix (string-append name "-shim.c,"))
(const.c-prefix (string-append name "-const.c,")))
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode -- "${@}" <<\EOF
+${MIT_SCHEME_EXE} --batch-mode -- ${1+"$@"} <<\EOF
(let ((name (car (command-line))))
(let ((shim.c-prefix (string-append name "-shim.c,"))
(const.c-prefix (string-append name "-const.c,")))
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode -- "${@}" <<\EOF
+${MIT_SCHEME_EXE} --batch-mode -- ${1+"$@"} <<\EOF
(let ((name (car (command-line))))
(let ((shim.c-prefix (string-append name "-shim.c,"))
(const.c-prefix (string-append name "-const.c,")))
autoconf
autoconf=done
fi
-( cd cmpauxmd && make ${@:+"${@}"} )
+( cd cmpauxmd && make ${1+"$@"} )
if [ ! -f Makefile.in ]; then
makeinit=clean
- makegen/makeinit.sh ${@:+"${@}"}
+ makegen/makeinit.sh ${1+"$@"}
makeinit=done
fi
# Generate "config.h".
touch Makefile.in
-./configure --disable-native-code ${@:-"${@}"} || exit $?
+./configure --disable-native-code ${1+"$@"} || exit $?
# Generate the real "Makefile.in" from "Makefile.in.in". Requires
# "config.h", because dependencies are generated by running GCC -M on
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
-${MIT_SCHEME_EXE} --batch-mode -- "${@}" <<\EOF
+${MIT_SCHEME_EXE} --batch-mode -- ${1+"$@"} <<\EOF
(let ((name (car (command-line))))
(let ((shim.c-prefix (string-append name "-shim.c,"))
(const.c-prefix (string-append name "-const.c,")))