function install_docbook_sgml_dtd()
{
   echo "Installing DocBook version $1"                                &&
   mkdir -p ${INSTALL_ROOT}/usr/share/sgml/docbook/sgml-dtd/$1         &&
   cd ${SOURCE_DIRECTORY}/$1                                           &&
   cp docbook.cat catalog                                              &&
   install -m 644 catalog ${INSTALL_ROOT}/usr/share/sgml/docbook/sgml-dtd/$1 &&
   install -m 644 *.dtd ${INSTALL_ROOT}/usr/share/sgml/docbook/sgml-dtd/$1   &&
   install -m 644 *.dcl ${INSTALL_ROOT}/usr/share/sgml/docbook/sgml-dtd/$1   &&
   install -m 644 *.mod ${INSTALL_ROOT}/usr/share/sgml/docbook/sgml-dtd/$1
}

install_docbook_sgml_dtd 3.1                                           &&
install_docbook_sgml_dtd 4.2                                           &&
install_docbook_sgml_dtd 4.3                                           &&
install_docbook_sgml_dtd 4.4                                           &&
install_docbook_sgml_dtd 4.5


