summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-02-03 13:56:10 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-02-03 13:56:10 +1100
commit319195042a3d1ff3d1e1e2c8f820b1384d9416f9 (patch)
tree0cb4d7559722a3130f7002c05b8924e61a9c2f50
parent3438d9140b9937ad16350087c7cfed379c7ebf9b (diff)
downloadmongo-319195042a3d1ff3d1e1e2c8f820b1384d9416f9.tar.gz
Make s_docs quiet if Python isn't found.
-rwxr-xr-xdist/s_docs9
1 files changed, 5 insertions, 4 deletions
diff --git a/dist/s_docs b/dist/s_docs
index 3852a5ff8db..20c717c99be 100755
--- a/dist/s_docs
+++ b/dist/s_docs
@@ -52,15 +52,16 @@ EOF
}
# Run again to generate the full documentation set (with Python).
- (cd ../docs && (eval cat Doxyfile $filter ; cat <<EOF
+ [ -f ../lang/python/wiredtiger.py ] && (cd ../docs &&
+ (eval cat Doxyfile $filter ; cat <<EOF
QUIET=YES
INPUT+=../lang/python/wiredtiger.py
EOF
-) | doxygen -
+) | doxygen -)
# Fix up bad links doxygen generates in navtree.js
- sed -i~ 's,/\.html,/,' navtree.js && rm -f navtree.js~
- )
+ (cd ../docs &&
+ sed -i~ 's,/\.html,/,' navtree.js && rm -f navtree.js~)
}
filter="|sed '/PROJECT_NUMBER/s,=.*,=\"Version $WIREDTIGER_VERSION\",'"