config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] config.sub: be more liberal on input case: accept upper case


From: Yann Droneaud
Subject: [PATCH 2/2] config.sub: be more liberal on input case: accept upper case name
Date: Fri, 1 Feb 2013 16:07:55 +0100

        * config.sub: Convert $name to lower case and
        remove check against upper case values.

Signed-off-by: Yann Droneaud <address@hidden>
---
 ChangeLog  |  5 +++++
 config.sub | 12 ++++++------
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 576cc63..82e0d37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-02-01  Yann Droneaud  <address@hidden>
 
+       * config.sub: Convert $name to lower case and
+       remove check against upper case values.
+
+2013-02-01  Yann Droneaud  <address@hidden>
+
        * config.sub: Use a named variable ($name) instead
        of a positional parameter ($1).
 
diff --git a/config.sub b/config.sub
index 8166274..5f9f810 100755
--- a/config.sub
+++ b/config.sub
@@ -115,7 +115,7 @@ case $# in
     exit 1;;
 esac
 
-name="$1"
+name=`echo "$1" | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
 
 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
 # Here we must recognize all the valid KERNEL-OS combinations.
@@ -643,7 +643,7 @@ case $basic_machine in
        encore | umax | mmax)
                basic_machine=ns32k-encore
                ;;
-       es1800 | OSE68k | ose68k | ose | OSE)
+       es1800 | ose68k | ose)
                basic_machine=m68k-ericsson
                os=-ose
                ;;
@@ -810,7 +810,7 @@ case $basic_machine in
        miniframe)
                basic_machine=m68000-convergent
                ;;
-       *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+       *mint | -mint[0-9]*)
                basic_machine=m68k-atari
                os=-mint
                ;;
@@ -931,7 +931,7 @@ case $basic_machine in
                basic_machine=powerpc-ibm
                os=-os400
                ;;
-       OSE68000 | ose68000)
+       ose68000)
                basic_machine=m68000-ericsson
                os=-ose
                ;;
@@ -1498,7 +1498,7 @@ case $os in
        -xenix)
                os=-xenix
                ;;
-       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+       -*mint | -mint[0-9]*)
                os=-mint
                ;;
        -aros*)
@@ -1769,7 +1769,7 @@ case $basic_machine in
                        -mpw* | -macos*)
                                vendor=apple
                                ;;
-                       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+                       -*mint | -mint[0-9]*)
                                vendor=atari
                                ;;
                        -vos*)
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]