#!/bin/sh

# Info documentation stuff.
install-info --quiet --remove /usr/share/info/ocaml.info.gz

# Doc-base stuff :
if [ "$1" = remove -o "$1" = upgrade ]; then
	if command -v install-docs >/dev/null 2>&1; then
		install-docs -r ocaml-doc
		install-docs -r /usr/share/doc-base/ocaml-doc.camlp4
		install-docs -r /usr/share/doc-base/ocaml-doc.camlp4-tutorial
		install-docs -r /usr/share/doc-base/ocaml-doc.examples
	fi
fi
