2017-11-08 16:43:52 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-02 21:21:45 +01:00
|
|
|
echo Remove Old Binaries
|
|
|
|
rm -f bin/unu
|
2017-11-08 16:43:52 +01:00
|
|
|
rm -f bin/rre
|
|
|
|
rm -f bin/embedimage
|
|
|
|
rm -f bin/repl
|
|
|
|
rm -f bin/extend
|
|
|
|
rm -f bin/muri
|
|
|
|
|
2018-02-02 21:21:45 +01:00
|
|
|
echo Build Toolchain
|
|
|
|
cc tools/embedimage.c -o bin/embedimage
|
|
|
|
cc tools/extend.c -o bin/extend
|
|
|
|
cc tools/unu.c -o bin/unu
|
|
|
|
cc tools/muri.c -o bin/muri
|
2017-11-08 16:43:52 +01:00
|
|
|
|
2018-02-02 21:21:45 +01:00
|
|
|
echo Updating Sources
|
2017-11-08 16:43:52 +01:00
|
|
|
./bin/unu literate/Unu.md >tools/unu.c
|
|
|
|
./bin/unu literate/Muri.md >tools/muri.c
|
2018-02-02 21:21:45 +01:00
|
|
|
|
|
|
|
echo Assemble ngaImage
|
2017-11-08 16:43:52 +01:00
|
|
|
./bin/muri literate/Rx.md
|
|
|
|
./bin/extend literate/RetroForth.md
|
|
|
|
|
2018-02-02 21:21:45 +01:00
|
|
|
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
|
2018-01-15 14:29:28 +01:00
|
|
|
|
2018-02-02 21:21:45 +01:00
|
|
|
echo Compile repl
|
2017-12-11 19:04:15 +01:00
|
|
|
cd interfaces
|
2018-02-02 21:21:45 +01:00
|
|
|
cc -O3 repl.c -o ../bin/repl
|
2017-12-11 19:04:15 +01:00
|
|
|
cd ..
|
|
|
|
|
2018-02-02 21:21:45 +01:00
|
|
|
echo Compile rre/unix
|
2017-11-08 16:43:52 +01:00
|
|
|
cd interfaces
|
2018-02-02 21:21:45 +01:00
|
|
|
cc -O3 -lm rre.c -o ../bin/rre
|
2017-11-08 16:43:52 +01:00
|
|
|
cd ..
|
2017-11-15 21:34:20 +01:00
|
|
|
|
2018-01-09 15:47:13 +01:00
|
|
|
echo "Update Glossary"
|
2018-02-02 17:28:45 +01:00
|
|
|
LC_ALL=c sort -o sorted.tsv words.tsv
|
|
|
|
mv sorted.tsv words.tsv
|
2017-11-15 21:34:20 +01:00
|
|
|
./bin/rre glossary.forth export glossary >doc/Glossary.txt
|