summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier>2006-04-18 22:47:39 +0000
committervapier <vapier>2006-04-18 22:47:39 +0000
commitf3a277cda12affc4287ef4eacab129da3f4272d4 (patch)
tree3673937d940779bd621f6350e480bfd0efaf2cc8 /locale-gen
parentadd progress information (diff)
downloadlocale-gen-f3a277cda12affc4287ef4eacab129da3f4272d4.tar.gz
locale-gen-f3a277cda12affc4287ef4eacab129da3f4272d4.tar.bz2
locale-gen-f3a277cda12affc4287ef4eacab129da3f4272d4.zip
add a check for /etc/locales.build upgrade
Diffstat (limited to 'locale-gen')
-rwxr-xr-xlocale-gen8
1 files changed, 7 insertions, 1 deletions
diff --git a/locale-gen b/locale-gen
index 86d9778..19758e9 100755
--- a/locale-gen
+++ b/locale-gen
@@ -36,7 +36,7 @@ show_usage() {
exit 1
}
show_version() {
- local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.2 2006/04/17 16:48:56 vapier Exp $"
+ local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.3 2006/04/18 22:47:39 vapier Exp $"
cvsver=${cvsver##*locale-gen-}
echo "locale-gen-${cvsver%%,v *}"
exit 0
@@ -93,6 +93,12 @@ LOCALEDIR=${DESTDIR}$(localedef --help | sed -n -e '/locale path/{s|.* : ||;s|:.
+if [[ ${QUIET} -eq 0 ]] && [[ -z ${JUST_LIST} ]] && \
+ [[ -e ${ROOT}etc/locales.build ]]
+then
+ ewarn "You should upgrade your /etc/locales.build to /etc/locale.gen"
+ ewarn "and then remove /etc/locales.build when you're done.\n"
+fi
[[ -s ${LOCALEGEN} ]] || exit 0
locales_to_generate=$(sed \