From: Ralph Ronnquist Date: Sat, 1 Jan 2022 12:25:01 +0000 (+1100) Subject: prepared for packnl embedding X-Git-Tag: 0.1~30 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=14d1288d271ae14678513d06a8602f1d3d929245;p=rrq%2Fhourglass.git prepared for packnl embedding --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b9be894 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +MAIN = command.lsp +LSP = $(filter-out $(MAIN),$(wildcard *.lsp)) + +hourglass: $(MAIN) $(LSP) + packnl -w $@ $^ + diff --git a/command.lsp b/command.lsp new file mode 100644 index 0000000..3e5094c --- /dev/null +++ b/command.lsp @@ -0,0 +1,9 @@ + +# This script is intended as main script for packnl embedding, it +# dispatches to the command of the first argument. + +(if (exists file? (list (main-args 1) + (string (main-args 1) ".lsp"))) + (load $it) + (write-line 2 (string "Unknown command " (main-args 1)))) +(exit 0)