r2525 - jhalfs/trunk/common

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Mon Apr 10 11:40:38 PDT 2006


Author: jhuntwork
Date: 2006-04-10 12:40:37 -0600 (Mon, 10 Apr 2006)
New Revision: 2525

Modified:
   jhalfs/trunk/common/func_validate_configs.sh
Log:
Exit when LANG isn't set on the host system, instead of seeming to continue but failing to generate the Makefile.

Modified: jhalfs/trunk/common/func_validate_configs.sh
===================================================================
--- jhalfs/trunk/common/func_validate_configs.sh	2006-04-10 17:38:01 UTC (rev 2524)
+++ jhalfs/trunk/common/func_validate_configs.sh	2006-04-10 18:40:37 UTC (rev 2525)
@@ -158,8 +158,8 @@
 
       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




More information about the alfs-log mailing list