. etc/functions.sh
-FASL=`get_fasl_file`
-
run_cmd_in_dir runtime ../microcode/scheme --library ../lib --heap 6000 \
- --fasl "${FASL}" --batch-mode <<EOF
+ --band runtime.com --batch-mode <<EOF
(begin
- (disk-save "../lib/runtime.com")
(load-option (quote compiler))
(load-option (quote edwin))
(disk-save "../lib/all.com"))
(define (compile-all-dirs compile-dir)
(compile-boot-dirs compile-dir)
+ (compile-remaining-dirs compile-dir))
+
+(define (compile-remaining-dirs compile-dir)
(compile-dir "sos")
(with-working-directory-pathname "sos"
(lambda ()
. etc/functions.sh
-run_cmd "${@}" --heap 6000 --stack 200 --batch-mode <<EOF
-(begin
- (load "etc/compile.scm")
- (compile-everything))
+run_cmd "${@}"<<EOF
+(load "etc/compile.scm")
+(compile-cref compile-dir)
+(for-each compile-dir '("runtime" "star-parser" "sf"))
+EOF
+
+FASL=`get_fasl_file`
+run_cmd_in_dir runtime ../microcode/scheme --batch-mode \
+ --library ../lib --fasl $FASL <<EOF
+(disk-save "../lib/runtime.com")
+EOF
+
+# 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")))
+EOF
+
+run_cmd "${@}"<<EOF
+(with-working-directory-pathname "compiler/"
+ (lambda () (load "compiler.cbf")))
+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)
EOF