continue rewrite of build-helper

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-07-03 22:33:48 +02:00
parent 9326adf34b
commit 9cde0d9d94
2 changed files with 14 additions and 3 deletions

View file

@ -61,9 +61,20 @@ $(MANREF): $(MANREFSH)
$(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 # dist code

View file

@ -67,7 +67,7 @@ case "$1" in
done done
;; ;;
mantype) link-type-manpages)
for mansrc in cdist/conf/type/*/man.text; do 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/;')" dst="$(echo $mansrc | sed -e 's;cdist/conf/;cdist-;' -e 's;/;;' -e 's;/man;;' -e 's;^;docs/man/man7/;')"
ln -sf "../../../$mansrc" "$dst" ln -sf "../../../$mansrc" "$dst"
@ -121,7 +121,7 @@ case "$1" in
cat << eof > "$blogfile" cat << eof > "$blogfile"
[[!meta title="Cdist $version released"]] [[!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 eof