prepared for packnl embedding
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 1 Jan 2022 12:25:01 +0000 (23:25 +1100)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 1 Jan 2022 12:25:01 +0000 (23:25 +1100)
Makefile [new file with mode: 0644]
command.lsp [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
index 0000000..3e5094c
--- /dev/null
@@ -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)