@ -45,16 +45,16 @@ PACKAGE_VERSION=`cd .. && sh build-aux/version.sh` || exit 1
# If no arguments are specified, default to generating liblzma API header
# documentation only.
case $1 in
'' | liblzm a)
'' | api )
# Remove old documentation before re-generating the new.
rm -rf ../doc/liblzm a
rm -rf ../doc/api
# Generate the HTML documentation by preparing the Doxyfile
# in stdin and piping the result to the doxygen command.
# With Doxygen, the last assignment of a value to a tag will
# override any earlier assignment. So, we can use this
# feature to override the tags that need to change between
# "liblzm a" and "internal" modes.
# "api " and "internal" modes.
(
cat Doxyfile
echo "PROJECT_NUMBER = $PACKAGE_VERSION"
@ -70,14 +70,14 @@ case $1 in
# itself, and doesn't include the actual license text (it
# only refers to the MIT license by name).
echo "Stripping JavaScript from Doxygen output..."
for F in ../doc/liblzm a/*.html
for F in ../doc/api /*.html
do
sed 's/<script [^>]*><\/script>//g
s/onclick="[^"]*"//g' \
"$F" > ../doc/liblzm a/tmp
mv -f ../doc/liblzm a/tmp "$F"
"$F" > ../doc/api /tmp
mv -f ../doc/api /tmp "$F"
done
rm -f ../doc/liblzm a/*.js
rm -f ../doc/api /*.js
;;
internal)
@ -102,8 +102,8 @@ case $1 in
echo "doxygen/update-doxygen: Error: mode argument '$1'" \
"is not supported." >&2
echo "doxygen/update-doxygen: Supported modes:" >&2
echo "doxygen/update-doxygen: - 'liblzm a' (default):" \
"API docs into doc/liblzm a" >&2
echo "doxygen/update-doxygen: - 'api ' (default):" \
"liblzma API docs into doc/api " >&2
echo "doxygen/update-doxygen: - 'internal':"\
"internal docs into doc/internal" >&2
exit 1