summaryrefslogtreecommitdiffstats
path: root/meta/classes/libc-package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/libc-package.bbclass')
-rw-r--r--meta/classes/libc-package.bbclass24
1 files changed, 2 insertions, 22 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 8349c2d3c0..c1781c64b4 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -47,7 +47,6 @@ python __anonymous () {
47 47
48OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}" 48OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}"
49 49
50# indentation removed on purpose
51locale_base_postinst() { 50locale_base_postinst() {
52#!/bin/sh 51#!/bin/sh
53 52
@@ -55,33 +54,14 @@ if [ "x$D" != "x" ]; then
55 exit 1 54 exit 1
56fi 55fi
57 56
58rm -rf ${TMP_LOCALE} 57localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
59mkdir -p ${TMP_LOCALE}
60if [ -f ${localedir}/locale-archive ]; then
61 cp ${localedir}/locale-archive ${TMP_LOCALE}/
62fi
63localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s --prefix=/tmp/locale %s
64mkdir -p ${localedir}/
65mv ${TMP_LOCALE}/locale-archive ${localedir}/
66rm -rf ${TMP_LOCALE}
67} 58}
68 59
69# indentation removed on purpose
70locale_base_postrm() { 60locale_base_postrm() {
71#!/bin/sh 61#!/bin/sh
72 62localedef --delete-from-archive --inputfile=${datadir}/locales/%s --charmap=%s %s
73rm -rf ${TMP_LOCALE}
74mkdir -p ${TMP_LOCALE}
75if [ -f ${localedir}/locale-archive ]; then
76 cp ${localedir}/locale-archive ${TMP_LOCALE}/
77fi
78localedef --delete-from-archive --inputfile=${datadir}/locales/%s --charmap=%s --prefix=/tmp/locale %s
79mv ${TMP_LOCALE}/locale-archive ${localedir}/
80rm -rf ${TMP_LOCALE}
81} 63}
82 64
83
84TMP_LOCALE="/tmp/locale${localedir}"
85LOCALETREESRC ?= "${PKGD}" 65LOCALETREESRC ?= "${PKGD}"
86 66
87do_prep_locale_tree() { 67do_prep_locale_tree() {