+
+oracle_j2sdk_doc_install() {
+ cat << EOF
+if [ ! -e "$javadoc_base$j2se_name" ]; then
+ exit 0
+fi
+
+# Register the documentation in the various documentation systems, i.e. dhelp and dwww.
+if [ "\$1" = configure ] ; then
+ if which install-docs >/dev/null 2>&1; then
+ install-docs -i $javadoc_base$j2se_name
+ fi
+fi
+EOF
+}
+
+oracle_j2sdk_doc_remove() {
+ cat << EOF
+if [ ! -e "$javadoc_base$j2se_name" ]; then
+ exit 0
+fi
+
+# Unregister documentation from the various documentation systems, i.e. dhelp and dwww.
+if [ "\$1" = configure ] ; then
+ if which install-docs >/dev/null 2>&1; then
+ install-docs -r $javadoc_base$j2se_name
+ fi
+fi
+EOF
+}
+