~ chicken-core (master) /scripts/bootstrap.sh
Trap1#!/bin/sh23set -e45# build 6.0.0pre1 tarball67getcmd="wget -c"8mkcmd=make9case "$(uname)" in10 FreeBSD)11 mkcmd=gmake12 # FreeBSD's ftp doesn't support HTTPS (only HTTP)13 getcmd=fetch;;14 *BSD)15 # Counter-intuitively, the ftp(1) program on many16 # BSDs supports both HTTP(S) and FTP17 getcmd=ftp18 mkcmd=gmake;;19esac2021mkdir -p boot/snapshot22cd boot23$getcmd https://code.call-cc.org/dev-snapshots/2024/12/09/chicken-6.0.0pre1.tar.gz24tar -xzf chicken-6.0.0pre1.tar.gz25cd chicken-6.0.0pre126./configure --prefix "$(pwd)"/../snapshot27$mkcmd "$@"28$mkcmd "$@" install29cd ../..3031# build a boot-chicken from git head using the snapshot32# chicken and then use that to build the real thing3334./configure --chicken "$(pwd)"/boot/snapshot/bin/chicken35$mkcmd boot-chicken3637# remove snapshot installation and tarball38rm -fr boot/snapshot39rm -fr boot/chicken-6.0.0pre140rm -f boot/chicken-6.0.0pre1.tar.gz4142echo43echo 'Now, build chicken by passing "--chicken ./chicken-boot" to "configure",'44echo 'in addition to "--prefix ..." and additional parameters.'45echo