diff options
author | vapier <vapier> | 2007-01-26 16:48:15 +0000 |
---|---|---|
committer | vapier <vapier> | 2007-01-26 16:48:15 +0000 |
commit | eeba0876d71bccfda0b11a832be8ef9adf90dc9e (patch) | |
tree | 9298a97ea17d47925b225a4788097ac070c0e2b7 | |
parent | add an --all option (diff) | |
download | locale-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-x | locale-gen | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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} } |