~ chicken-core (chicken-5) 6f696411db4deeb6be6eca9e61e85c539bb75c68
commit 6f696411db4deeb6be6eca9e61e85c539bb75c68
Author: Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Wed Dec 18 21:04:59 2024 +0100
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Fri Dec 20 10:39:18 2024 +0100
bootstrap.sh: Use ftp instead of wget on the BSDs
NetBSD, MirBSD, OpenBSD and DragonFly BSD's base systems ship
ftp(1) (which supports HTTP[S]), but not wget.
On FreeBSD, the version of ftp(1) seems to lag behind the
upstream NetBSD version, and doesn't support HTTPS (only HTTP).
So there, we keep using fetch(1).
Signed-off-by: felix <felix@call-with-current-continuation.org>
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index dff029a7..93376cc4 100755
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -9,8 +9,12 @@ mkcmd=make
case "$(uname)" in
FreeBSD)
mkcmd=gmake
+ # FreeBSD's ftp doesn't support HTTPS (only HTTP)
getcmd=fetch;;
*BSD)
+ # Counter-intuitively, the ftp(1) program on many
+ # BSDs supports both HTTP(S) and FTP
+ getcmd=ftp;;
mkcmd=gmake;;
esac
Trap