[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] * config.sub (maybe_os): Over-indent in preparation for nex
From: |
John Ericson |
Subject: |
[PATCH 2/4] * config.sub (maybe_os): Over-indent in preparation for next patch |
Date: |
Tue, 1 May 2018 15:05:06 -0400 |
---
config.sub | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/config.sub b/config.sub
index 678a9e6..5e5eac2 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/.*-/-/'`
- ;;
- *)
- os=
- ;;
- esac
- ;;
+ 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/.*-/-/'`
+ ;;
+ *)
+ os=
+ ;;
+ esac
+ ;;
esac
### Let's recognize common machines as not being operating systems so
--
2.16.3
- Re: [PATCH 2/4] Indent maybe_os stuff ahead of refactor, John Ericson, 2018/05/01
- Re: [PATCH 2/4] Indent maybe_os stuff ahead of refactor, Ben Elliston, 2018/05/02
- Re: [PATCH 2/4] Indent maybe_os stuff ahead of refactor, John Ericson, 2018/05/02
- [PATCH 1/2] * config.sub: Properly recognise configs with 4 components, John Ericson, 2018/05/02
- [PATCH 2/2] * config.sub (arm*-*-none-eabi): Recognise, John Ericson, 2018/05/02
- Re: [PATCH 1/2] * config.sub: Properly recognise configs with 4 components, Ben Elliston, 2018/05/04
- Re: [PATCH 1/2] * config.sub: Properly recognise configs with 4 components, John Ericson, 2018/05/04
- [PATCH 1/2] * config.sub: Properly recognise configs with 4 components, John Ericson, 2018/05/04
- [PATCH 2/2] * config.sub (arm*-*-none-eabi): Recognise, John Ericson, 2018/05/04