(finish-cross-compilation:file pathname force?))))
(directory-read (pathname-as-directory directory))))))
+(define (finish-cross-compilation:info-files directory #!optional force?)
+ (let ((force? (if (default-object? force?) #f force?)))
+ (let loop ((directory directory))
+ (for-each (lambda (pathname)
+ (cond ((file-directory? pathname)
+ (if (not (let ((ns (file-namestring pathname)))
+ (or (string=? ns ".")
+ (string=? ns ".."))))
+ (loop pathname)))
+ ((let ((t (pathname-type pathname)))
+ (and (string? t)
+ (string=? t "fni")))
+ (finish-cross-compilation:info-file pathname force?))))
+ (directory-read (pathname-as-directory directory))))))
+
(define (finish-cross-compilation:info-file pathname #!optional force?)
(let* ((input-file (pathname-default-type pathname "fni"))
(output-file (pathname-new-type input-file "bci")))
maybe_mv *.lap "${DIRNAME}/."
maybe_mv *.rtl "${DIRNAME}/."
;;
+make-clean)
+ mkdir "${DIRNAME}"
+ maybe_mv *.bin "${DIRNAME}/."
+ maybe_mv *.ext "${DIRNAME}/."
+ maybe_mv *.com "${DIRNAME}/."
+ maybe_mv *.bci "${DIRNAME}/."
+ maybe_mv *.moc "${DIRNAME}/."
+ maybe_mv *.fni "${DIRNAME}/."
+ maybe_mv *.lap "${DIRNAME}/."
+ maybe_mv *.rtl "${DIRNAME}/."
+ ;;
unmake)
if [ -d "${DIRNAME}" ]; then
maybe_mv "${DIRNAME}"/* .
(load-option 'CREF)
(load-option '*PARSER)
(load-option 'COMPILER)
+ (load "compiler/base/crsend.com" user-initial-environment)
(disk-save "lib/x-compiler.com"))
EOF
(compile-everything)))
EOF
- echo "# `mydate`: Finish-cross-compilation of everything."
+ echo "# `mydate`: Finish-cross-compilation of fni files."
+ run_cmd "${@}" --batch-mode --library lib --band x-compiler.com <<EOF
+(finish-cross-compilation:info-files ".")
+EOF
+
+ echo "# `mydate`: Finish-cross-compilation of everything."
run_cmd_in_dir runtime \
../microcode/scheme --batch-mode --library ../lib \
--fasl make.bin <<EOF
(compile-boot-dirs compile-dir)))
EOF
-echo "# `mydate`: Finish-cross-compilation of boot-dirs."
+echo "# `mydate`: Finish-cross-compilation of boot-dirs fni files."
+run_cmd "${@}" --batch-mode --library lib --band x-compiler.com <<EOF
+(finish-cross-compilation:info-files ".")
+EOF
+
+echo "# `mydate`: Finish-cross-compilation of boot-dirs."
run_cmd_in_dir runtime \
../microcode/scheme --batch-mode --library ../lib --fasl make.bin <<EOF
(begin
(disk-save "../lib/boot-compiler.com"))
EOF
-run_cmd ./Stage.sh make-cross 0
+run_cmd ./Stage.sh make-clean 0
echo "# `mydate`: Use the new machine and compiler to re-compile everything."
run_cmd ./microcode/scheme --batch-mode --library lib \