fi
run_cmd "${EXE}" --batch-mode <<EOF
-(load "etc/compile.scm")
-(compile-cref compile-dir)
-(for-each compile-dir '("runtime" "star-parser" "sf"))
+(begin
+ (load "etc/compile.scm")
+ (compile-cref compile-dir)
+ (for-each compile-dir '("runtime" "star-parser" "sf")))
EOF
FASL=`get_fasl_file`
echo ""
run_cmd "${EXE}" --batch-mode --library lib --band x-runtime.com <<EOF
-(load-option 'SF)
-(with-working-directory-pathname "compiler"
- (lambda ()
- (load "compiler.sf")))
+(begin
+ (load-option 'SF)
+ (with-working-directory-pathname "compiler"
+ (lambda ()
+ (load "compiler.sf"))))
EOF
run_cmd "${EXE}" --batch-mode <<EOF
EOF
run_cmd "${EXE}" --batch-mode --library lib --band x-runtime.com <<EOF
-(load-option 'SF)
-(load-option 'CREF)
-(load-option '*PARSER)
-(load-option 'COMPILER)
-(disk-save "lib/x-compiler.com")
+(begin
+ (load-option 'SF)
+ (load-option 'CREF)
+ (load-option '*PARSER)
+ (load-option 'COMPILER)
+ (disk-save "lib/x-compiler.com"))
EOF
# Remove host (native) code to STAGEX/ subdirs.
echo "# Re-syntax cross-compiler using x-runtime.com."
run_cmd_in_dir compiler \
"${@}" --batch-mode --library ../lib --band x-runtime.com <<EOF
-(load "compiler.sf")
-(sf "base/crsend")
+(begin
+ (load "compiler.sf")
+ (sf "base/crsend"))
EOF
if [ -s compiler/compiler-unx.crf ]; then
echo "# Dump cross-compiler into x-compiler.com."
run_cmd "${@}" --batch-mode --library lib --band x-runtime.com <<EOF
-(load-option 'SF)
-(load-option 'CREF)
-(load-option '*PARSER)
-(load-option 'COMPILER)
-(disk-save "lib/x-compiler.com")
+(begin
+ (load-option 'SF)
+ (load-option 'CREF)
+ (load-option '*PARSER)
+ (load-option 'COMPILER)
+ (disk-save "lib/x-compiler.com"))
EOF
echo "# Remove host code to STAGEX/ subdirs."
. etc/functions.sh
run_cmd "${@}"<<EOF
-(load "etc/compile.scm")
-(compile-cref compile-dir)
-(for-each compile-dir '("runtime" "star-parser" "sf"))
+(begin
+ (load "etc/compile.scm")
+ (compile-cref compile-dir)
+ (for-each compile-dir '("runtime" "star-parser" "sf")))
EOF
FASL=`get_fasl_file`
# Syntax the new compiler in fresh (compiler) packages. Use the new sf too.
run_cmd ./microcode/scheme --batch-mode --library lib --band runtime.com <<EOF
-(load-option 'SF)
-(with-working-directory-pathname "compiler/"
- (lambda () (load "compiler.sf")))
+(begin
+ (load-option 'SF)
+ (with-working-directory-pathname "compiler/"
+ (lambda () (load "compiler.sf"))))
EOF
run_cmd "${@}"<<EOF
EOF
run_cmd ./microcode/scheme --batch-mode --library lib --band runtime.com <<EOF
-(load-option 'COMPILER)
-(load "etc/compile.scm")
-(compile-remaining-dirs compile-dir)
+(begin
+ (load-option 'COMPILER)
+ (load "etc/compile.scm")
+ (compile-remaining-dirs compile-dir))
EOF