summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb
index 43553795f1..6098673a35 100644
--- a/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb
+++ b/meta/recipes-devtools/sgml-common/sgml-common_0.6.3.bb
@@ -32,6 +32,7 @@ do_compile_append() {
32FILES_${PN} += "${datadir}/sgml" 32FILES_${PN} += "${datadir}/sgml"
33 33
34pkg_postinst_${PN}() { 34pkg_postinst_${PN}() {
35 if [ "x$D" = "x" ]; then
35 install-catalog \ 36 install-catalog \
36 --add ${sysconfdir}/sgml/sgml-ent.cat \ 37 --add ${sysconfdir}/sgml/sgml-ent.cat \
37 ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog 38 ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog
@@ -39,6 +40,21 @@ pkg_postinst_${PN}() {
39 install-catalog \ 40 install-catalog \
40 --add ${sysconfdir}/sgml/sgml-docbook.cat \ 41 --add ${sysconfdir}/sgml/sgml-docbook.cat \
41 ${sysconfdir}/sgml/sgml-ent.cat 42 ${sysconfdir}/sgml/sgml-ent.cat
43 else
44 if ! grep -q ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog $D${sysconfdir}/sgml/sgml-ent.cat; then
45 echo "CATALOG ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog" >> $D${sysconfdir}/sgml/sgml-ent.cat
46 fi
47 if ! grep -q ${sysconfdir}/sgml/sgml-ent.cat $D${sysconfdir}/sgml/catalog; then
48 echo "CATALOG ${sysconfdir}/sgml/sgml-ent.cat" >> $D${sysconfdir}/sgml/catalog
49 fi
50
51 if ! grep -q ${sysconfdir}/sgml/sgml-ent.cat $D${sysconfdir}/sgml/sgml-docbook.cat; then
52 echo "CATALOG ${sysconfdir}/sgml/sgml-ent.cat" >> $D${sysconfdir}/sgml/sgml-docbook.cat
53 fi
54 if ! grep -q ${sysconfdir}/sgml/sgml-docbook.cat $D${sysconfdir}/sgml/catalog; then
55 echo "CATALOG ${sysconfdir}/sgml/sgml-docbook.cat" >> $D${sysconfdir}/sgml/catalog
56 fi
57 fi
42} 58}
43 59
44pkg_postrm_${PN}() { 60pkg_postrm_${PN}() {