summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier>2007-01-26 16:48:15 +0000
committervapier <vapier>2007-01-26 16:48:15 +0000
commiteeba0876d71bccfda0b11a832be8ef9adf90dc9e (patch)
tree9298a97ea17d47925b225a4788097ac070c0e2b7
parentadd an --all option (diff)
downloadlocale-gen-eeba0876d71bccfda0b11a832be8ef9adf90dc9e.tar.gz
locale-gen-eeba0876d71bccfda0b11a832be8ef9adf90dc9e.tar.bz2
locale-gen-eeba0876d71bccfda0b11a832be8ef9adf90dc9e.zip
if locale failed to generate and it has a / in it, chances are the user messed up their locale.gen so lets display a helpful message
-rwxr-xr-xlocale-gen7
1 files changed, 6 insertions, 1 deletions
diff --git a/locale-gen b/locale-gen
index 5b5d4c0..3cd2c78 100755
--- a/locale-gen
+++ b/locale-gen
@@ -44,7 +44,7 @@ show_usage() {
}
show_version() {
local Header=""
- local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.18 2006/12/28 19:27:31 vapier Exp $"
+ local cvsver="$Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/locale/locale-gen,v 1.19 2007/01/26 16:48:15 vapier Exp $"
cvsver=${cvsver##*locale-gen,v }
echo "locale-gen-${cvsver%% *}"
exit 0
@@ -270,6 +270,11 @@ generate_locale() {
ret=$?
[[ -n ${output} ]] && eend ${ret}
fi
+
+ if [[ ${ret} != 0 && ${locale} == */* ]] ; then
+ ewarn "Perhaps you meant to use a space instead of a / in your config file ?"
+ fi
+
return ${ret}
}