mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-22 04:44:50 +00:00
29 lines
660 B
Plaintext
Executable File
29 lines
660 B
Plaintext
Executable File
# package install script
|
|
|
|
action=$1
|
|
newversion=$2
|
|
oldversion=$3
|
|
|
|
post_install() {
|
|
install-catalog --add /etc/sgml/sgml-ent.cat \
|
|
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog &>/dev/null
|
|
|
|
install-catalog --add /etc/sgml/sgml-docbook.cat \
|
|
/etc/sgml/sgml-ent.cat &>/dev/null
|
|
}
|
|
|
|
post_remove() {
|
|
install-catalog --remove /etc/sgml/sgml-ent.cat \
|
|
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog &>/dev/null
|
|
|
|
install-catalog --remove /etc/sgml/sgml-docbook.cat \
|
|
/etc/sgml/sgml-ent.cat &>/dev/null
|
|
}
|
|
|
|
case $action in
|
|
post-install) post_install ;;
|
|
pre-upgrade) post_remove ;;
|
|
post-upgrade) post_install ;;
|
|
post-remove) post_remove ;;
|
|
esac
|