summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-11-03 13:54:17 -0500
committerJakob Kaivo <jkk@ung.org>2020-11-03 13:54:17 -0500
commitbafe47b8c319a9b014665df258c2f7fa9dff97bc (patch)
treed97ad97bde511794337218683e2d0e0cb674bba6 /Makefile
parent02f687dfa6dad97fea7bbbb0846d36d8f83bdcaa (diff)
add license to final script, indent bodies of functions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 01eb430..7f57d1e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,10 @@
OUTPUTS=text.m4 html.m4
COMMON=pre.m4
-m4n: m4n.sh add_output.sh $(OUTPUTS) pre.m4
- printf '#!/bin/sh\nset -e\n\n' > $@
+m4n: m4n.sh add_common.sh add_output.sh $(OUTPUTS) pre.m4 LICENSE
+ printf '#!/bin/sh\n' > $@
+ cat LICENSE | sed 's/^/# /' >> $@
+ printf 'set -e\n\n' >> $@
for m4 in $(COMMON); do /bin/sh ./add_common.sh $$m4; done >> $@
for m4 in $(OUTPUTS); do /bin/sh ./add_output.sh $$m4; done >> $@
cat m4n.sh >> $@