From bafe47b8c319a9b014665df258c2f7fa9dff97bc Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 3 Nov 2020 13:54:17 -0500 Subject: add license to final script, indent bodies of functions --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 >> $@ -- cgit v1.2.1