~ chicken-core (chicken-5) /scripts/bootstrap.sh
Trap1#!/bin/sh
2
3set -e
4
5# build 5.3.0 release
6
7mkdir -p boot/snapshot
8cd boot
9wget -c https://code.call-cc.org/releases/5.3.0/chicken-5.3.0.tar.gz
10tar -xzf chicken-5.3.0.tar.gz
11cd chicken-5.3.0
12make "$@" PREFIX="$(pwd)"/../snapshot
13make "$@" PREFIX="$(pwd)"/../snapshot install
14cd ../..
15
16# build a boot-chicken from git head using the snapshot
17# chicken and then use that to build the real thing
18
19make "$@" spotless
20make "$@" CHICKEN="$(pwd)"/boot/snapshot/bin/chicken boot-chicken
21
22# remove snapshot installation and tarball
23rm -fr boot/snapshot
24rm -fr boot/chicken-5.3.0
25rm -f boot/chicken-5.3.0.tar.gz
26
27echo
28echo 'Now, build chicken by passing "CHICKEN=./chicken-boot" to make,'
29echo 'in addition to PREFIX, PLATFORM, and other parameters.'
30echo