aargh I don't know why I get all my gits wrong these days.

See the correct path attached.

On Oct 22 2024, 10:37 +0000, Pietro Cerutti <[email protected]> wrote:
This makes bootstrap.sh usable out of the box on FreeBSD.

--
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org

From aa4ddd416e73d14c5e5bdc6ad4da5647fe34bead Mon Sep 17 00:00:00 2001
From: Pietro Cerutti <[email protected]>
Date: Tue, 22 Oct 2024 10:13:12 +0000
Subject: [PATCH] Use fetch and gmake on FreeBSD, gmake on all BSDs

---
scripts/bootstrap.sh | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 370292db..1f1c9822 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -4,16 +4,14 @@ set -e

# build 6.0.0-bootstrap tarball

+getcmd=wget
+mkcmd=make
case "$(uname)" in
    FreeBSD)
-        mkcmd=gmake
-        getcmd=fetch;;
+        getcmd=fetch
+        mkcmd=gmake;;
    *BSD)
-        mkcmd=gmake
-        getcmd=wget;;
-    *)
-        mkcmd=make
-        getcmd=wget;;
+        mkcmd=gmake;;
esac

mkdir -p boot/snapshot
--
2.46.1



--
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org
>From 0375e00b8a90d2b3c47c8e60ebfdeb40f3669aa0 Mon Sep 17 00:00:00 2001
From: Pietro Cerutti <[email protected]>
Date: Tue, 22 Oct 2024 09:47:11 +0000
Subject: [PATCH] Use fetch and gmake on FreeBSD, gmake on all BSDs

---
 scripts/bootstrap.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index 0c11b858..1f1c9822 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -4,16 +4,19 @@ set -e
 
 # build 6.0.0-bootstrap tarball
 
+getcmd=wget
+mkcmd=make
 case "$(uname)" in
+    FreeBSD)
+        getcmd=fetch
+        mkcmd=gmake;;
     *BSD)
         mkcmd=gmake;;
-    *)
-        mkcmd=make;;
 esac
 
 mkdir -p boot/snapshot
 cd boot
-wget -c 
https://code.call-cc.org/dev-snapshots/2024/07/01/chicken-6.0.0-bootstrap.tar.gz
+$getcmd 
https://code.call-cc.org/dev-snapshots/2024/07/01/chicken-6.0.0-bootstrap.tar.gz
 tar -xzf chicken-6.0.0-bootstrap.tar.gz
 cd chicken-6.0.0
 $mkcmd "$@" PREFIX="$(pwd)"/../snapshot
-- 
2.46.1

Reply via email to