From 5ab80db94262b14644b910321c6ea83d8501f3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 15 Oct 2010 22:00:08 +0300 Subject: [PATCH] Added support for generating rdoc documentation of modules (make rdoc). --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 354a4e8..712e08b 100644 --- a/Makefile +++ b/Makefile @@ -18,4 +18,16 @@ check: errors="`egrep --line-number '[[:space:]]$$' $${name}`" ; \ [ $$? -eq 0 ] && echo "$${name}: trailing white spaces on" \ "line $${errors}" 1>&2 ; \ - done \ No newline at end of file + done + +rdoc: + mkdir .$$$$ && \ + rm -rf rdoc ; \ + find . -name \*.pp | egrep -v "^doc\.pp" | sed -e 's/^\(.*\)/import "\1"/' > doc.pp ; \ + puppetdoc --mode rdoc --outputdir rdoc --modulepath . --manifestdir .$$$$ ; \ + rmdir .$$$$ + +.PHONY: rdoc + +clean: + rm -rf puppet-modules.tar.gz rdoc