diff --git a/Makefile.linux b/Makefile.linux index 5c057dc..1743a8d 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -7,7 +7,10 @@ LIBCURSES ?= -lcurses all: build -build: bin/retro-embedimage bin/retro-extend bin/retro-injectimage-js bin/retro-muri bin/RETRO12.html bin/retro bin/retro-repl bin/retro-unu +build: dirs bin/retro-embedimage bin/retro-extend bin/retro-injectimage-js bin/retro-muri bin/RETRO12.html bin/retro bin/retro-repl bin/retro-unu + +dirs: + mkdir -p bin clean: rm -f bin/retro-embedimage diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 7992b6b..17ffa3d 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -27,6 +27,7 @@ easier to write. Contrast: ## Build - add `Makefile.linux` to help with building on some Linux systems +- recreate `bin` if it's not present ## Core Language @@ -42,6 +43,7 @@ easier to write. Contrast: - moved Windows implementation to `interfaces/windows` - now starts the listener when run w/o any arguments +- added `-s` command line parameter to silence input echo & ok prompt ## Tools diff --git a/build.sh b/build.sh index 5bd1c49..d4ab5e5 100755 --- a/build.sh +++ b/build.sh @@ -1,49 +1,51 @@ #!/bin/sh +mkdir -p bin + 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 +rm -f bin/retro-unu +rm -f bin/retro +rm -f bin/retro-embedimage +rm -f bin/retro-repl +rm -f bin/retro-extend +rm -f bin/retro-muri echo Build Unu -cc -O2 tools/unu.c -o bin/unu +cc -O2 tools/unu.c -o bin/retro-unu echo Updating Sources -./bin/unu literate/Unu.md >tools/unu.c -./bin/unu literate/Muri.md >tools/muri.c +./bin/retro-unu literate/Unu.md >tools/unu.c +./bin/retro-unu literate/Muri.md >tools/muri.c echo Build Toolchain -cc -O2 tools/embedimage.c -o bin/embedimage -cc -O2 tools/extend.c -o bin/extend -cc -O2 tools/muri.c -o bin/muri +cc -O2 tools/embedimage.c -o bin/retro-embedimage +cc -O2 tools/extend.c -o bin/retro-extend +cc -O2 tools/muri.c -o bin/retro-muri echo Assemble ngaImage -./bin/muri literate/Rx.md -./bin/extend literate/RetroForth.md +./bin/retro-muri literate/Rx.md +./bin/retro-extend literate/RetroForth.md echo Prepare Image for Embedding [repl, ri] -./bin/embedimage > interfaces/image.c +./bin/retro-embedimage > interfaces/image.c -echo Prepare Extended Image for Embedding [rre/unix] +echo Prepare Extended Image for Embedding [bin/retro-/unix] cp ngaImage cleanImage -./bin/extend interfaces/rre.forth -./bin/embedimage >interfaces/rre_image_unix.c +./bin/retro-extend interfaces/rre.forth +./bin/retro-embedimage >interfaces/rre_image_unix.c mv cleanImage ngaImage echo Compile repl cd interfaces -cc -O2 repl.c -o ../bin/repl +cc -O2 repl.c -o ../bin/retro-repl cd .. echo Compile rre/unix cd interfaces -cc -O2 rre.c -lm -o ../bin/rre +cc -O2 rre.c -lm -o ../bin/retro 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 +./bin/retro glossary.forth export glossary >doc/Glossary.txt