~ chicken-core (master) /scripts/bootstrap.sh
Trap1#!/bin/sh23set -e45# When cd is given as argument a directory that cannot be found in the6# paths yielded by CDPATH on OpenBSD's ksh (same binary as sh), it7# fails with8# `sh: cd: <the dir>: bad directory'9# So, we unset CDPATH to avoid such problems.10unset CDPATH1112BOOTVERSION=6.0.0rc313BOOTURL=2026/05/12/chicken-${BOOTVERSION}.tar.gz1415getcmd="wget -c"16mkcmd=make17case "$(uname)" in18 FreeBSD)19 mkcmd=gmake20 # FreeBSD's ftp doesn't support HTTPS (only HTTP)21 getcmd=fetch;;22 *BSD)23 # Counter-intuitively, the ftp(1) program on many24 # BSDs supports both HTTP(S) and FTP25 getcmd=ftp26 mkcmd=gmake;;27esac2829mkdir -p boot/snapshot30cd boot31$getcmd https://code.call-cc.org/dev-snapshots/$BOOTURL32tar -xzf chicken-${BOOTVERSION}.tar.gz33cd chicken-${BOOTVERSION}34./configure --prefix "$(pwd)"/../snapshot35$mkcmd "$@"36$mkcmd "$@" install37cd ../..3839# build a boot-chicken from git head using the snapshot40# chicken and then use that to build the real thing4142./configure --chicken "$(pwd)"/boot/snapshot/bin/chicken43$mkcmd boot-chicken4445# remove snapshot installation and tarball46rm -fr boot/snapshot47rm -fr boot/chicken-${BOOTVERSION}48rm -f boot/chicken-${BOOTVERSION}.tar.gz4950echo51echo 'Now, build chicken by passing "--chicken ./chicken-boot" to "configure",'52echo 'in addition to "--prefix ..." and additional parameters.'53echo