preinst is in ldp-docbook-xsl 0.0.20040321-3.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | #!/bin/sh
if [ "$1" = upgrade ] || [ -d /usr/share/sgml/docbook/stylesheet/xsl/ldp ]; then
rm -rf /usr/share/sgml/docbook/stylesheet/xsl/ldp
fi
mkdir -p /usr/share/sgml/docbook/stylesheet/xsl
ln -sf ../../../../xml/docbook/stylesheet/ldp \
/usr/share/sgml/docbook/stylesheet/xsl/ldp
|