#! /bin/sh set -ex usage() { cat </dev/null 2>&1 || { echo "manual-labor could not be found. Install it with chicken-install." >&2 exit 1 } ./configure --chicken "$chicken" make C_COMPILER=$C_COMPILER dist -j "$make_jobs" tarball_dir=chicken-$(cat buildversion) tarball=${tarball_dir}.tar.gz mv "$tarball" "$tmpdir" cd "$tmpdir" tar xzf "$tarball" cd "$tarball_dir" ./configure --prefix "$PWD/../chicken" --chicken "$chicken" --c-compiler "$C_COMPILER" make -j "$make_jobs" make install make check ../chicken/bin/chicken-install -v salmonella ../chicken/bin/salmonella base64 echo "========== ALL GOOD! =========="