#! /bin/sh

if [ "$1" = configure ]; then
  if command -v install-docs >/dev/null 2>&1; then
  	for name in rec-atag1 rec-css1 rec-css2 rec-dom1 rec-dom2-core rec-dom2-events rec-dom2-html \
			rec-dom2-style rec-dom2-traversal-range rec-dom2-views rec-html4 rec-mathml2 \
			rec-pics-labels rec-pics-rules rec-pics-services rec-ruby rec-smil rec-smil-animation \
			rec-svg rec-xhtml-basic rec-xhtml-modularization rec-xhtml11 rec-xlink \
			rec-xml rec-xml-c14n rec-xmlbase rec-xmlschema-0 rec-xmlschema-1 rec-xmlschema-2 \
			rec-xpath rec-xslt rec-png rec-xsl rec-xmlnamespaces rec-rdf rec-xmlinfoset rec-wai-pageauth rec-webcgm
	do
           install-docs -i /usr/share/doc-base/$name
	done
  fi
fi

if [ -x /usr/sbin/dhelp_parse ]; then
  mv /usr/share/doc/doc-html-w3/dhelp /usr/share/doc/doc-html-w3/.dhelp
  /usr/sbin/dhelp_parse -a /usr/share/doc/doc-html-w3
else
  rm -f /usr/share/doc/doc-html-w3/dhelp
fi

#DEBHELPER#
