mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-11 06:14:41 +03:00
afaf416673
... instead of `bootstrap` which contains source files. Make it easier to understand how build works, and in particular, which files are sources and which files are generated.
25 lines
758 B
Bash
Executable File
25 lines
758 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # exit on any error
|
|
|
|
if [ -z "$SCHEME" ] || [ -z "$IDRIS2_VERSION" ]; then
|
|
echo "Required SCHEME or IDRIS2_VERSION env is not set."
|
|
if [ -z "$SCHEME" ]; then
|
|
echo "Invoke with SCHEME=[name of chez scheme executable]"
|
|
fi
|
|
exit 1
|
|
fi
|
|
echo "Bootstrapping SCHEME=$SCHEME IDRIS2_VERSION=$IDRIS2_VERSION"
|
|
|
|
# Compile the bootstrap scheme
|
|
# TODO: Move boot-build to Makefile in bootstrap/Makefile
|
|
cd bootstrap-build
|
|
echo "Building idris2-boot from idris2-boot.ss"
|
|
${SCHEME} --script ../bootstrap/compile.ss
|
|
|
|
# Put the result in the usual place where the target goes
|
|
mkdir -p ../build/exec
|
|
mkdir -p ../build/exec/idris2_app
|
|
install ../bootstrap/idris2-boot.sh ../build/exec/idris2
|
|
install idris2_app/* ../build/exec/idris2_app
|