From 46874f056a7e15df23750a841f79fd2fb3361e3a Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 22 Oct 2013 13:47:59 +0200 Subject: doc: remove generated mof/*.rst files before creating overall documentation. There should be only one documentation of a CIM class and that's the one on the top level mof/ directory, therefore all the others must be removed. --- tools/gendoc/gendoc-mock-inside | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/gendoc/gendoc-mock-inside b/tools/gendoc/gendoc-mock-inside index 8f70681..4d6865c 100755 --- a/tools/gendoc/gendoc-mock-inside +++ b/tools/gendoc/gendoc-mock-inside @@ -34,7 +34,7 @@ cp -r _build/html/* $OUT/openlmi-storage/$3/ # prepare the directory for inclusion in overall documentation # we don't want class documentation here, there will be one # on the top level -rm -rf mof/*.rst +/bin/rm mof/*.rst popd pushd clones/openlmi-providers/ @@ -46,6 +46,10 @@ for d in account fan hardware journald logicalfile power realmd service-dbus sof mkdir -p $OUT/openlmi-providers/$1/$d cp -r doc/admin/$d/html/* $OUT/openlmi-providers/$1/$d/ done +# prepare the directory for inclusion in overall documentation +# we don't want class documentation here, there will be one +# on the top level +find . -wholename "*mof/*.rst" | xargs /bin/rm popd pushd clones/openlmi-networking @@ -55,6 +59,10 @@ cmake .. || exit 1 make doc || exit 1 mkdir -p $OUT/openlmi-networking/$2 cp -r doc/admin/html/* $OUT/openlmi-networking/$2/ +# prepare the directory for inclusion in overall documentation +# we don't want class documentation here, there will be one +# on the top level +rm doc/admin/mof/*.rst popd # Update project versions in RST files -- cgit