Exit when LANG isn't set on the host system, instead of seeming to continue but failing to generate the Makefile.

This commit is contained in:
Jeremy Huntwork 2006-04-10 18:40:37 +00:00
parent d748b315ea
commit 71dd5a5c5b

View file

@ -158,8 +158,8 @@ inline_doc
if [[ "${config_param}" = "LANG" ]]; then
echo "`eval echo $PARAM_VALS`"
[[ -z "${!config_param}" ]] && continue
# See it the locale values exist on this machine
[[ -z "${!config_param}" ]] && echo -e "\nVariable LANG cannot be empty!" && write_error_and_die
# See if the locale values exist on this machine
if [[ "`locale -a | grep -c ${!config_param}`" > 0 ]]; then
continue
else # If you make it this far then there is a problem