ref: 6bfb55fb32fa2713c5527968733e26540f999af0
parent: d9d1a7eb98c2fc31292d75c30a9dd6c6fc1bb4f9
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Tue Nov 12 14:04:25 EST 2024
bootstrap: revert flisp.boot on errors
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -4,6 +4,7 @@
test -x $F || { CC=clang meson setup -Dbuildtype=debug build . && ninja -C build || exit 1; }
test -x $F || { echo no $F found; exit 1; }
$F gen.lsp && \
+cp flisp.boot flisp.boot.bak && \
$F mkboot0.lsp system.lsp compiler.lsp > flisp.boot && \
$F mkboot1.lsp && \
-ninja -C build || exit 1
+ninja -C build || { cp flisp.boot.bak flisp.boot; exit 1; }