config-patches
[Top][All Lists]
Advanced

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

[PATCH 2/4] Indent maybe_os stuff ahead of refactor


From: John Ericson
Subject: [PATCH 2/4] Indent maybe_os stuff ahead of refactor
Date: Mon, 23 Apr 2018 21:39:04 -0400

---
 config.sub | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/config.sub b/config.sub
index ca94006..18d0465 100755
--- a/config.sub
+++ b/config.sub
@@ -114,29 +114,29 @@ esac
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
-  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
-  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | 
kfreebsd*-gnu* | \
-  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
-  kopensolaris*-gnu* | cloudabi*-eabi* | \
-  storm-chaos* | os2-emx* | rtmk-nova*)
-    os=-$maybe_os
-    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
-    ;;
-  android-linux)
-    os=-linux-android
-    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
-    ;;
-  *)
-    basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
-    case $1 in
-      *-*)
-        os=`echo "$1" | sed 's/.*-/-/'`
+      nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* 
| \
+      linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | 
kfreebsd*-gnu* | \
+      knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
+      kopensolaris*-gnu* | cloudabi*-eabi* | \
+      storm-chaos* | os2-emx* | rtmk-nova*)
+        os=-$maybe_os
+        basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+        ;;
+      android-linux)
+        os=-linux-android
+        basic_machine=`echo "$1" | sed 
's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
         ;;
       *)
-        os=
+        basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
+        case $1 in
+          *-*)
+            os=`echo "$1" | sed 's/.*-/-/'`
+            ;;
+          *)
+            os=
+            ;;
+        esac
         ;;
-    esac
-    ;;
 esac
 
 ### Let's recognize common machines as not being operating systems so
-- 
2.16.2




reply via email to

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