# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../docbook-xsl/docbook-xsl.conf # Copyright (C) 2007 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- makeopt= makeinstopt= datadir="/usr/share/xml/docbook/xsl-$ver" hook_add postmake 5 'docbook_install' docbook_install() { local catalog=$root/etc/xml/docbook-xsl local URI=http://docbook.sourceforge.net/release/xsl rm -rf "$root$datadir" mkdir -p "$root$datadir" echo "Installing..." tar -cO . | tar -C "$root$datadir" -xvf - echo "Populating /etc/xml/docbook" [ -s "$catalog" ] || xmlcatalog --noout --create "$catalog" for x in $ver current; do xmlcatalog --noout \ --add 'rewriteURI' "$URI/$x/" "$datadir/" \ --add 'rewriteSystem' "$URI/$x/" "$datadir/" \ "$catalog" done }