summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-10-22 13:47:59 +0200
committerJan Safranek <jsafrane@redhat.com>2013-10-22 14:48:26 +0200
commit46874f056a7e15df23750a841f79fd2fb3361e3a (patch)
treee69555b41d4744aeb212d0ca46c269bc892f0667 /tools
parent6745437e51198befc5c9fa74611b4206e35b92f3 (diff)
downloadopenlmi-providers-46874f056a7e15df23750a841f79fd2fb3361e3a.tar.gz
openlmi-providers-46874f056a7e15df23750a841f79fd2fb3361e3a.tar.xz
openlmi-providers-46874f056a7e15df23750a841f79fd2fb3361e3a.zip
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gendoc/gendoc-mock-inside10
1 files changed, 9 insertions, 1 deletions
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