mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-28 14:11:53 +03:00
24 lines
762 B
Bash
Executable File
24 lines
762 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # exit on any error
|
|
|
|
BOOTSTRAP_PREFIX=$PWD/bootstrap-build
|
|
|
|
IDRIS2_CG="${IDRIS2_CG-"chez"}"
|
|
|
|
# BOOTSTRAP_PREFIX must be the "clean" build root, without cygpath -m
|
|
# Otherwise, we get 'git: Bad address'
|
|
echo "$BOOTSTRAP_PREFIX"
|
|
DYLIB_PATH="$BOOTSTRAP_PREFIX/lib"
|
|
|
|
$MAKE bootstrap-libs IDRIS2_CG="$IDRIS2_CG" LD_LIBRARY_PATH="$DYLIB_PATH" \
|
|
PREFIX="$BOOTSTRAP_PREFIX" SCHEME="$SCHEME"
|
|
$MAKE bootstrap-install IDRIS2_CG="$IDRIS2_CG" LD_LIBRARY_PATH="$DYLIB_PATH" \
|
|
PREFIX="$BOOTSTRAP_PREFIX" SCHEME="$SCHEME"
|
|
|
|
# Now rebuild everything properly
|
|
$MAKE clean-libs IDRIS2_BOOT="$BOOTSTRAP_PREFIX/bin/idris2"
|
|
$MAKE all IDRIS2_BOOT="$BOOTSTRAP_PREFIX/bin/idris2" IDRIS2_CG="$IDRIS2_CG" \
|
|
LD_LIBRARY_PATH="$DYLIB_PATH" \
|
|
SCHEME="$SCHEME"
|