Also fixed the SGML catalog entry generation
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=20
This commit is contained in:
parent
be58d8ad9e
commit
f2dde345ba
@ -92,9 +92,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
# SGML CATALOG
|
# SGML CATALOG
|
||||||
#
|
#
|
||||||
if [ -x %{regcat} ]; then
|
if [ -x %{regcat} ]; then
|
||||||
for CATALOG in catalog/CATALOG.%{dtdname}-%{dtdversion}; do
|
echo "######################## adding catalog in post"
|
||||||
%{regcat} -a %{_datadir}/sgml/$CATALOG >/dev/null 2>&1 || true
|
%{regcat} -a %{_datadir}/sgml/CATALOG.%{dtdname}-%{dtdversion} >/dev/null 2>&1 || true
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
# XML Catalogs
|
# XML Catalogs
|
||||||
#
|
#
|
||||||
@ -126,12 +125,11 @@ exit 0
|
|||||||
#
|
#
|
||||||
if [ 0 = $1 ]; then
|
if [ 0 = $1 ]; then
|
||||||
if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
||||||
# SGML
|
# SGML: novdoc dtd entry
|
||||||
for c in catalog/CATALOG.%{dtdname}-%{dtdversion}; do
|
echo "######################## deleting catalog in postun"
|
||||||
%{regcat} -r %{_datadir}/sgml/$c >/dev/null 2>&1
|
%{regcat} -r %{_datadir}/sgml/CATALOG.%{dtdname}-%{dtdversion} >/dev/null 2>&1 || true
|
||||||
done
|
|
||||||
# XML
|
# XML
|
||||||
# novdoc entry
|
# novdoc dtd entry
|
||||||
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||||
--del %{dtdname}-%{dtdversion}
|
--del %{dtdname}-%{dtdversion}
|
||||||
# susexsl entry
|
# susexsl entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user