mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-22 08:44:44 +00:00
33 lines
904 B
Plaintext
Executable File
33 lines
904 B
Plaintext
Executable File
# package install script
|
|
|
|
action=$1
|
|
newversion=$2
|
|
oldversion=$3
|
|
|
|
post_install() {
|
|
local version=$1
|
|
/usr/bin/install-catalog --add \
|
|
/etc/sgml/openjade-$version.cat \
|
|
/usr/share/sgml/openjade-$version/catalog > /dev/null 2>&1
|
|
|
|
/usr/bin/install-catalog --add \
|
|
/etc/sgml/openjade.cat \
|
|
/etc/sgml/openjade-$version.cat > /dev/null 2>&1
|
|
}
|
|
|
|
post_remove() {
|
|
local version=$1
|
|
/usr/bin/install-catalog --remove \
|
|
/etc/sgml/openjade-$version.cat \
|
|
/usr/share/sgml/openjade-$version/catalog > /dev/null 2>&1
|
|
|
|
/usr/bin/install-catalog --remove \
|
|
/etc/sgml/openjade.cat \
|
|
/etc/sgml/openjade-$version.cat > /dev/null 2>&1
|
|
}
|
|
|
|
case $action in
|
|
post-install|post-upgrade) post_install $newversion ;;
|
|
post-remove) post_remove $2 ;;
|
|
esac
|