shithub: sl

Download patch

ref: 6d523fa932815f5ac255559193333a09a5280ca0
parent: dc4a648a71627db05ba1c24557c0ab7f80d348ed
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Mar 20 23:49:52 EDT 2025

unix bootstrap: fix backup copy

--- a/tools/bootstrap.sh
+++ b/tools/bootstrap.sh
@@ -1,6 +1,7 @@
 #!/bin/sh
 test -e
-F="$(pwd)/build/sl"
+P="$(pwd)"
+F="$P/build/sl"
 test -x $F || { meson setup -Dbuildtype=debug build . && ninja -C build || exit 1; }
 test -x $F || { echo no $F found; exit 1; }
 cd src && \
@@ -10,4 +11,4 @@
 ninja -C ../build && \
 cd ../boot && \
 $F ../tools/mkboot1.lsp && \
-ninja -C ../build || { cp sl.boot.bak sl.boot; exit 1; }
+ninja -C ../build || { cp "$P/boot/sl.boot.bak" "$P/boot/sl.boot"; exit 1; }