fix: add sgml-common install script

This commit is contained in:
ngn
2024-08-21 04:53:33 +03:00
parent 8f32c501e3
commit a52ed8d9fb
5 changed files with 28 additions and 18 deletions

View File

@ -25,11 +25,23 @@ PACKAGE() {
make DESTDIR="${ROOTDIR}" install
make DESTDIR="${ROOTDIR}" docdir="/usr/share/doc" install
install-catalog --add "/etc/sgml/sgml-ent.cat" \
"${ROOTDIR}/usr/share/sgml/sgml-iso-entities-8879.1986/catalog"
install-catalog --add "/etc/sgml/sgml-docbook.cat" \
"${ROOTDIR}/etc/sgml/sgml-ent.cat"
cd .. && rm -rf ${NAME}-${VERSION}
}
INSTALL(){
# remove old catalogs
install-catalog --remove /etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
install-catalog --remove /etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat
# install new ones
install-catalog --add /etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
install-catalog --add /etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat
exit 0
}