# --- SDE-COPYRIGHT-NOTE-BEGIN ---# This copyright note is auto-generated by ./scripts/Create-CopyPatch.## Filename: package/.../docbook-xsl/docbook-xsl.conf# Copyright (C) 2007 - 2010 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"symlink="/usr/share/xml/docbook/xsl-stylesheets" 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$symlink" 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 ln -s "$root$datadir" "$root$symlink"}
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../docbook-xsl/docbook-xsl.conf
# Copyright (C) 2007 - 2010 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"
symlink="/usr/share/xml/docbook/xsl-stylesheets"
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$symlink"
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
ln -s "$root$datadir" "$root$symlink"
}