#! /bin/sh

PKGNAME=w3-recs

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

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

#DEBHELPER#
