Simpler idris2-boot.ss generation

Trying to untangle idris2 bootstrap build, this will make it a
little simpler.
This commit is contained in:
Stiopa Koltsov 2021-01-17 02:43:29 +00:00 committed by G. Allais
parent 47d345f67a
commit 4e94298acb

View File

@ -150,12 +150,9 @@ bootstrap: bootstrap-build bootstrap-test
bootstrap-build: support
cp support/c/${IDRIS2_SUPPORT} bootstrap/idris2_app
sed s/libidris2_support.so/${IDRIS2_SUPPORT}/g bootstrap/idris2_app/idris2.ss > bootstrap/idris2_app/idris2-boot.ss
ifeq ($(OS), darwin)
sed -i '' 's|__PREFIX__|${IDRIS2_CURDIR}/bootstrap|g' bootstrap/idris2_app/idris2-boot.ss
else
sed -i 's|__PREFIX__|${IDRIS2_CURDIR}/bootstrap|g' bootstrap/idris2_app/idris2-boot.ss
endif
sed 's/libidris2_support.so/${IDRIS2_SUPPORT}/g; s|__PREFIX__|${IDRIS2_CURDIR}/bootstrap|g' \
bootstrap/idris2_app/idris2.ss \
> bootstrap/idris2_app/idris2-boot.ss
sh ./bootstrap.sh
# Bootstrapping using racket
@ -163,12 +160,9 @@ bootstrap-racket: bootstrap-racket-build bootstrap-test
bootstrap-racket-build: support
cp support/c/${IDRIS2_SUPPORT} bootstrap/idris2_app
cp bootstrap/idris2_app/idris2.rkt bootstrap/idris2_app/idris2-boot.rkt
ifeq ($(OS), darwin)
sed -i '' 's|__PREFIX__|${IDRIS2_CURDIR}/bootstrap|g' bootstrap/idris2_app/idris2-boot.rkt
else
sed -i 's|__PREFIX__|${IDRIS2_CURDIR}/bootstrap|g' bootstrap/idris2_app/idris2-boot.rkt
endif
sed 's|__PREFIX__|${IDRIS2_CURDIR}/bootstrap|g' \
bootstrap/idris2_app/idris2.rkt \
> bootstrap/idris2_app/idris2-boot.rkt
sh ./bootstrap-rkt.sh
bootstrap-test: