echo "# `date`: Re-syntax prerequisites."
for DIR in runtime sf cref; do
- run_cmd_in_dir $DIR "${@}" --batch-mode --load $DIR.sf </dev/null
+ run_cmd_in_dir ${DIR} "${@}" --batch-mode --load ${DIR}.sf </dev/null
done
echo "# `date`: Re-compile prerequisites."
for DIR in runtime sf cref; do
- run_cmd_in_dir $DIR "${@}" --batch-mode --load $DIR.cbf </dev/null
+ run_cmd_in_dir ${DIR} "${@}" --batch-mode --load ${DIR}.cbf </dev/null
done
run_cmd_in_dir star-parser "${@}" --batch-mode --load compile.scm </dev/null
echo "# `date`: Dump new runtime into x-runtime.com."
get_fasl_file
run_cmd_in_dir runtime \
- "${@}" --batch-mode --library ../lib --fasl $FASL <<EOF
+ "${@}" --batch-mode --library ../lib --fasl "${FASL}" <<EOF
(disk-save "../lib/x-runtime.com")
EOF
echo ""
# rebuilt cross-compiler.)
run_cmd ./Stage.sh unmake 0
-if [ "$FAST" ]; then
+if [ "${FAST}" ]; then
# Use the host-compiled cross-compiler to compile everything. If
# the host system is native, this will be much faster than using the
echo "# `date`: Re-cross-compile everything."
run_cmd "${@}" --batch-mode --library lib \
- --band x-compiler.com --heap $HEAP <<EOF
+ --band x-compiler.com --heap ${HEAP} <<EOF
(begin
(load "etc/compile")
(fluid-let ((compiler:generate-lap-files? #t)
echo "# `date`: Re-cross-compile boot-dirs."
run_cmd "${@}" --batch-mode --library lib \
- --band x-compiler.com --heap $HEAP <<EOF
+ --band x-compiler.com --heap ${HEAP} <<EOF
(begin
(load "etc/compile")
(fluid-let ((compiler:generate-lap-files? #f)
echo "# `date`: Dump new compiler into boot-compiler.com."
run_cmd_in_dir runtime \
- ../microcode/scheme --batch-mode --library ../lib --fasl $FASL <<EOF
+ ../microcode/scheme --batch-mode --library ../lib --fasl "${FASL}" <<EOF
(begin
(disk-save "../lib/boot-runtime.com")
(load-option 'SF)
echo "# `date`: Use the new machine and compiler to re-compile everything."
run_cmd ./microcode/scheme --batch-mode --library lib \
- --band boot-compiler.com --heap $HEAP <<EOF
+ --band boot-compiler.com --heap ${HEAP} <<EOF
(begin
(load "etc/compile")
(fluid-let ((compiler:generate-lap-files? #f)
. etc/functions.sh
-run_cmd "${@}"<<EOF
+run_cmd "${@}" <<EOF
(begin
(load "etc/compile.scm")
(compile-cref compile-dir)
get_fasl_file
run_cmd_in_dir runtime ../microcode/scheme --batch-mode \
- --library ../lib --fasl $FASL <<EOF
+ --library ../lib --fasl "${FASL}" <<EOF
(disk-save "../lib/runtime.com")
EOF
(lambda () (load "compiler.sf"))))
EOF
-run_cmd "${@}"<<EOF
+run_cmd "${@}" <<EOF
(with-working-directory-pathname "compiler/"
(lambda () (load "compiler.cbf")))
EOF