From 9cde0d9d94276eefcb2e80a8a965b8cd7d8775aa Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 3 Jul 2013 22:33:48 +0200 Subject: [PATCH] continue rewrite of build-helper Signed-off-by: Nico Schottelius --- Makefile | 13 ++++++++++++- bin/build-helper | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dac24394..8929f91d 100644 --- a/Makefile +++ b/Makefile @@ -61,9 +61,20 @@ $(MANREF): $(MANREFSH) $(MANREFSH) ################################################################################ -# generic code +# manpage +# generate links from types +# build manpages # +mantypedocuments=cdist/conf/type/*/man.text + +mantypelist: $(mantypedocuments) + echo $^ >> $@ + +link-type-manpages: + $(helper) $@ + + ################################################################################ # dist code diff --git a/bin/build-helper b/bin/build-helper index c1c65676..94b52f66 100755 --- a/bin/build-helper +++ b/bin/build-helper @@ -67,7 +67,7 @@ case "$1" in done ;; - mantype) + link-type-manpages) for mansrc in cdist/conf/type/*/man.text; do dst="$(echo $mansrc | sed -e 's;cdist/conf/;cdist-;' -e 's;/;;' -e 's;/man;;' -e 's;^;docs/man/man7/;')" ln -sf "../../../$mansrc" "$dst" @@ -121,7 +121,7 @@ case "$1" in cat << eof > "$blogfile" [[!meta title="Cdist $version released"]] -Here's a short overview about the changes found in this release: +Here's a short overview about the changes found in version ${version}: eof