#!/bin/sh # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} && cd ${LFS_TMP}/${1} && install -d /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION} && chown -R root:root . && cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp \ images javahelp lib manpages params profiling template xhtml \ /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION} && install -d /usr/share/doc/xml && cp -af doc/* /usr/share/doc/xml && cd /usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION} && sh INSTALL evaluate_retval if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml || exit 1 xmlcatalog --noout --create /etc/xml/catalog || exit 1 fi if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create /etc/xml/docbook || exit 1 fi xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}" /etc/xml/catalog && xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/current" \ "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}" /etc/xml/catalog && xmlcatalog --noout --add "delegateSystem" \ "http://docbook.sourceforge.net/release/xsl/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateURI" \ "http://docbook.sourceforge.net/release/xsl/" \ "file:///etc/xml/docbook" /etc/xml/catalog && var_add_str "XML_CATALOG_FILES" /etc/profile \ "/usr/share/xml/docbook/xsl-stylesheets-${DOCBOOK_XSL_VERSION}/catalog.xml /etc/xml/catalog" && var_export "XML_CATALOG_FILES" /etc/profile # Return last error exit $?