~ chicken-core (chicken-5) /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 CDPATH1112# build 5.3.0 release1314mkdir -p boot/snapshot15cd boot16wget -c https://code.call-cc.org/releases/5.3.0/chicken-5.3.0.tar.gz17tar -xzf chicken-5.3.0.tar.gz18cd chicken-5.3.019make "$@" PREFIX="$(pwd)"/../snapshot20make "$@" PREFIX="$(pwd)"/../snapshot install21cd ../..2223# build a boot-chicken from git head using the snapshot24# chicken and then use that to build the real thing2526make "$@" spotless27make "$@" CHICKEN="$(pwd)"/boot/snapshot/bin/chicken boot-chicken2829# remove snapshot installation and tarball30rm -fr boot/snapshot31rm -fr boot/chicken-5.3.032rm -f boot/chicken-5.3.0.tar.gz3334echo35echo 'Now, build chicken by passing "CHICKEN=./chicken-boot" to make,'36echo 'in addition to PREFIX, PLATFORM, and other parameters.'37echo