summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/sgml-common
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/sgml-common')
-rw-r--r--meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb17
1 files changed, 8 insertions, 9 deletions
diff --git a/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
index 597536570d..97b308a88b 100644
--- a/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
+++ b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb
@@ -22,8 +22,6 @@ S = "${WORKDIR}/sgml-common-${PV}"
22 22
23SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle" 23SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle"
24SSTATEPOSTINSTFUNCS += "sgml_common_sstate_postinst" 24SSTATEPOSTINSTFUNCS += "sgml_common_sstate_postinst"
25CLEANFUNCS += "sgml_common_sstate_clean"
26
27 25
28do_install_append() { 26do_install_append() {
29 # install-catalog script contains hard-coded references to 27 # install-catalog script contains hard-coded references to
@@ -59,13 +57,14 @@ sgml_common_sstate_postinst() {
59 fi 57 fi
60 done 58 done
61 fi 59 fi
62 fi 60 cat << EOF > ${SSTATE_INST_POSTRM}
63} 61#!/bin/sh
64 62
65sgml_common_sstate_clean () { 63# Ensure that the catalog file sgml-docbook.cat is properly
66 # Ensure that the catalog file sgml-docbook.cat is properly 64# updated when the package is removed from sstate cache.
67 # updated when the package is removed from sstate cache. 65if [ -f ${sysconfdir}/sgml/sgml-docbook.cat ]; then
68 if [ -f ${sysconfdir}/sgml/sgml-docbook.cat ]; then 66 sed -i '/\/sgml\/sgml-ent.cat/d' ${sysconfdir}/sgml/sgml-docbook.cat
69 sed -i '/\/sgml\/sgml-ent.cat/d' ${sysconfdir}/sgml/sgml-docbook.cat 67fi
68EOF
70 fi 69 fi
71} 70}