mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-13 05:48:39 +03:00
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
#!/bin/sh
|
|
|
|
if [ -z "$SCHEME" ]
|
|
then
|
|
echo "SCHEME not set. Invoke with SCHEME=[name of chez executable]"
|
|
exit 1
|
|
fi
|
|
|
|
# Compile the bootstrap scheme
|
|
cd bootstrap
|
|
${SCHEME} --script compile.ss
|
|
|
|
# Put the result in the usual place where the target goes
|
|
mkdir -p ../build/exec
|
|
mkdir -p ../build/exec/idris2_app
|
|
install idris2-boot ../build/exec/idris2
|
|
install idris2_app/* ../build/exec/idris2_app
|
|
|
|
cd ..
|
|
|
|
# Install with the bootstrap directory as the PREFIX
|
|
DIR="`realpath $0`"
|
|
PREFIX="`dirname $DIR`"/bootstrap
|
|
WIN_PREFIX=$(cygpath -m $PREFIX)
|
|
|
|
# Now rebuild everything properly
|
|
echo ${PREFIX}
|
|
|
|
IDRIS2_BOOT_PATH="${WIN_PREFIX}/idris2-0.2.0/prelude;${WIN_PREFIX}/idris2-0.2.0/base;${WIN_PREFIX}/idris2-0.2.0/contrib;${WIN_PREFIX}/idris2-0.2.0/network"
|
|
|
|
make libs SCHEME=${SCHEME} PREFIX=${PREFIX}
|
|
make install SCHEME=${SCHEME} PREFIX=${PREFIX}
|
|
make clean IDRIS2_BOOT=${PREFIX}/bin/idris2
|
|
make all IDRIS2_BOOT=${PREFIX}/bin/idris2 SCHEME=${SCHEME} IDRIS2_PATH=${IDRIS2_BOOT_PATH}
|
|
make test INTERACTIVE='' IDRIS2_BOOT=${PREFIX}/bin/idris2 SCHEME=${SCHEME} IDRIS2_PATH=${IDRIS2_BOOT_PATH} IDRIS2_LIBS=${WIN_PREFIX}/idris2-0.2.0/lib IDRIS2_DATA=${WIN_PREFIX}/idris2-0.2.0/support
|