#!/bin/sh -e # # Builds CHICKEN given the following environment: # # - VERSION - source version # - INPUT - source archive name # - OUTPUT - generated archive name # - PREFIX - install prefix # # Refer to ./build-dust-chicken for context. # rm -rf ${OUTPUT} tar -xzf ${INPUT}.tar.gz ( cd chicken-${VERSION} || cd chicken-core-* if test -f build-version.c then make "$@" confclean install else scripts/bootstrap.sh "$@" make CHICKEN=./chicken-boot "$@" confclean install fi mv ${PREFIX} ../${OUTPUT} ) tar -czf ${OUTPUT}.tar.gz ${OUTPUT}