Max Mahn

aboutsummaryrefslogtreecommitdiff
path: root/make.awk
diff options
context:
space:
mode:
authorMax Mahn <mahn.maxwell@proton.me>2026-05-20 09:23:50 -0400
committerMax Mahn <mahn.maxwell@proton.me>2026-05-20 09:23:50 -0400
commit137e4ed9d74891349de1b0da1e0cf2653ea92c5e (patch)
tree29f913c45c081ec52269362eb2ce7f6f18d09070 /make.awk
initial commit
Diffstat (limited to 'make.awk')
-rw-r--r--make.awk17
1 files changed, 17 insertions, 0 deletions
diff --git a/make.awk b/make.awk
new file mode 100644
index 0000000..c6f0b37
--- /dev/null
+++ b/make.awk
@@ -0,0 +1,17 @@
+
+/^##include\s\w+/ {
+ while ((getline line < $2) > 0)
+ print line;
+ close($2);
+ next;
+}
+
+/^##insert\s+\w+/ {
+ sub(/^##insert\s*/, "");
+ if (NF > 0)
+ system($0);
+ next;
+}
+
+// { print }
+