From 14d1288d271ae14678513d06a8602f1d3d929245 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Sat, 1 Jan 2022 23:25:01 +1100 Subject: [PATCH] prepared for packnl embedding --- Makefile | 6 ++++++ command.lsp | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 Makefile create mode 100644 command.lsp 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) -- 2.39.2