r2455 - jhalfs/branches/experimental/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Wed Mar 29 09:15:14 PST 2006


Author: manuel
Date: 2006-03-29 10:15:12 -0700 (Wed, 29 Mar 2006)
New Revision: 2455

Modified:
   jhalfs/branches/experimental/common/func_validate_configs.sh
Log:
Small code fix.
Trailing spaces clean-up.

Modified: jhalfs/branches/experimental/common/func_validate_configs.sh
===================================================================
--- jhalfs/branches/experimental/common/func_validate_configs.sh	2006-03-29 15:04:40 UTC (rev 2454)
+++ jhalfs/branches/experimental/common/func_validate_configs.sh	2006-03-29 17:15:12 UTC (rev 2455)
@@ -59,20 +59,21 @@
     ;;
    "mips64")     [[ "${TARGET}"   = "mipsel-unknown-linux-gnu" ]] &&
                  [[ "${TARGET32}" = "mipsel-unknown-linux-gnu" ]] && return
-               
+
                  [[ "${TARGET}"   = "mips-unknown-linux-gnu" ]] &&
                  [[ "${TARGET32}" = "mips-unknown-linux-gnu" ]] && return
         write_error_and_die
     ;;
-   "sparc64")   [[ "${TARGET}"   = "sparc64-unknown-linux-gnu" ]] && 
+   "sparc64")   [[ "${TARGET}"   = "sparc64-unknown-linux-gnu" ]] &&
                 [[ "${TARGET32}" = "sparcv9-unknown-linux-gnu" ]] && return
         write_error_and_die
     ;;
    "ppc64")    [[ "${TARGET}"   = "powerpc64-unknown-linux-gnu" ]] &&
-               [[ "${TARGET32}" = "powerpc-unknown-linux-gnu"   ]] && return               
+               [[ "${TARGET32}" = "powerpc-unknown-linux-gnu"   ]] && return
         write_error_and_die
     ;;
    *)  write_error_and_die
+   ;;
  esac
 }
 
@@ -107,7 +108,7 @@
   local config_param
   local validation_str
   local verbose=$1
-  
+
   write_error_and_die() {
     echo -e "\n${DD_BORDER}"
     echo -e "`eval echo ${ERROR_MSG_pt1}`" >&2
@@ -125,7 +126,7 @@
        write_error_and_die
      fi
   }
-  
+
   set +e
   for PARAM_GROUP in ${PROGNAME}_PARAM_LIST; do
     for config_param in ${!PARAM_GROUP}; do
@@ -174,13 +175,13 @@
          else  # If you make it this far then there is a problem
            write_error_and_die
          fi
-      fi     
+      fi
 
 
       if [[ "${config_param}"  = "KEYMAP" ]]; then
          [[ $verbose = "1" ]] && echo "`eval echo $PARAM_VALS`"
          [[ "${!config_param}" = "none" ]] && continue
-         if [[ -e "/usr/share/kbd/keymaps/${!config_param}" ]] && 
+         if [[ -e "/usr/share/kbd/keymaps/${!config_param}" ]] &&
             [[ -s "/usr/share/kbd/keymaps/${!config_param}" ]]; then
             continue
          else
@@ -218,8 +219,8 @@
          [[ $verbose = "1" ]] && echo "`eval echo $PARAM_VALS`"
          [[ ! "${WC}" = 1 ]] && continue
          [[ -z "${!config_param}" ]] && continue
-         if [[ -e "${!config_param}" ]] && 
-            [[ -s "${!config_param}" ]]; then 
+         if [[ -e "${!config_param}" ]] &&
+            [[ -s "${!config_param}" ]]; then
            continue
          else
            write_error_and_die
@@ -229,7 +230,7 @@
       if [[ "${config_param}" = "CONFIG" ]]; then
          [[ $verbose = "1" ]] && echo "`eval echo $PARAM_VALS`"
          [[ -z "${!config_param}" ]] && continue
-         if [[ -e "${!config_param}" ]] && 
+         if [[ -e "${!config_param}" ]] &&
             [[ -s "${!config_param}" ]]; then
            continue
          else




More information about the alfs-log mailing list