diff options
| author | Jakob Kaivo <jkk@ung.org> | 2020-11-03 13:54:17 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2020-11-03 13:54:17 -0500 |
| commit | bafe47b8c319a9b014665df258c2f7fa9dff97bc (patch) | |
| tree | d97ad97bde511794337218683e2d0e0cb674bba6 /Makefile | |
| parent | 02f687dfa6dad97fea7bbbb0846d36d8f83bdcaa (diff) | |
add license to final script, indent bodies of functions
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 >> $@ |
