summaryrefslogtreecommitdiff
path: root/dist/s_docs
blob: 77a5ef99a2b6541b91e7a621f1a5920669b70c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

# We require doxygen which may not be installed.
type doxygen > /dev/null 2>&1 || {
	echo 'doxygen not found, skipping document creation'
	exit 1
}

filter=
while :
	do case "$1" in
	-b)     # Include the Berkeley DB cross-reference
		filter="| sed 's,src/bdb-map.dox,,'"
		shift;;
	*)
		break;;
	esac
done

# Run doxygen to generate HTML documentation.
cd ../docs && (eval cat Doxyfile $filter ; echo "QUIET=YES") | doxygen -