d59e1129e6
FossilOrigin-Name: 93f6e0aa74fc582e25846b61a6eb0c478ee8399149cd4072e250cab11d001c6a
53 lines
1.2 KiB
Bash
Executable file
53 lines
1.2 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
echo Remove Old Binaries
|
|
rm -f bin/unu
|
|
rm -f bin/rre
|
|
rm -f bin/embedimage
|
|
rm -f bin/repl
|
|
rm -f bin/extend
|
|
rm -f bin/muri
|
|
|
|
echo Build Toolchain
|
|
$CC $CFLAGS tools/embedimage.c -o bin/embedimage
|
|
$CC $CFLAGS tools/extend.c -o bin/extend
|
|
$CC $CFLAGS tools/unu.c -o bin/unu
|
|
$CC $CFLAGS tools/muri.c -o bin/muri
|
|
|
|
echo Updating Sources
|
|
./bin/unu literate/Unu.md >tools/unu.c
|
|
./bin/unu literate/Muri.md >tools/muri.c
|
|
|
|
echo Assemble ngaImage
|
|
./bin/muri literate/Rx.md
|
|
./bin/extend literate/RetroForth.md
|
|
|
|
echo Prepare Image for Embedding [repl, ri]
|
|
./bin/embedimage > interfaces/image.c
|
|
|
|
echo Prepare Extended Image for Embedding [rre/unix]
|
|
cp ngaImage cleanImage
|
|
./bin/extend interfaces/rre.forth
|
|
./bin/embedimage >interfaces/rre_image_unix.c
|
|
mv cleanImage ngaImage
|
|
|
|
echo Prepare Extended Image for Embedding [rre/windows]
|
|
cp ngaImage cleanImage
|
|
./bin/extend interfaces/rre_windows.forth
|
|
./bin/embedimage >interfaces/rre_image_windows.c
|
|
mv cleanImage ngaImage
|
|
|
|
echo Compile repl
|
|
cd interfaces
|
|
$CC $CFLAGS -O3 repl.c -o ../bin/repl
|
|
cd ..
|
|
|
|
echo Compile rre/unix
|
|
cd interfaces
|
|
$CC $CFLAGS -O3 -lm rre.c -o ../bin/rre
|
|
cd ..
|
|
|
|
echo "Update Glossary"
|
|
LC_ALL=c sort -o sorted.tsv words.tsv
|
|
mv sorted.tsv words.tsv
|
|
./bin/rre glossary.forth export glossary >doc/Glossary.txt
|