mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
manpages: chop off first header (#2764)
each readme starts with the plugin's name as a header, this needs to be chopped off to provide a good manual page. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -36,6 +36,7 @@ man/coredns-%.7: plugin/%/README.md
|
||||
@/bin/echo -e "%%%\n title = \"`basename $@ | sed s\/\.7\/\/` 7\"\n" \
|
||||
'area = "CoreDNS"\n workgroup = "CoreDNS Plugins"\n%%%\n\n' > $@.header
|
||||
@cat $@.header $< > $@.md && rm $@.header
|
||||
@sed -i '/^# .*/d' $@.md
|
||||
$(MMARK) $@.md > $@ && rm $@.md
|
||||
|
||||
PHONY: clean
|
||||
|
||||
Reference in New Issue
Block a user