diff options
author | dann frazier <dannf@debian.org> | 2009-06-05 18:02:49 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-09 16:37:54 -0400 |
commit | bdefe35d40c6bb5859dadee26c2e19bf58540f1d (patch) | |
tree | da2b32395341bdcb3bd829b6634a818111f6fdf4 | |
parent | a9eb522375abc79c2bf23940a067bc0046276236 (diff) |
Remove bashisms from scripts
The '-e' option to echo and brace expansion are not guaranteed to be supported
by a POSIX-compliant /bin/sh (e.g. dash)
Signed-off-by: dann frazier <dannf@debian.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | scripts/gcc-version.sh | 2 | ||||
-rwxr-xr-x | scripts/ver_linux | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh index cc767b388baf..debecb5561c4 100644 --- a/scripts/gcc-version.sh +++ b/scripts/gcc-version.sh | |||
@@ -18,7 +18,7 @@ compiler="$*" | |||
18 | 18 | ||
19 | if [ ${#compiler} -eq 0 ]; then | 19 | if [ ${#compiler} -eq 0 ]; then |
20 | echo "Error: No compiler specified." | 20 | echo "Error: No compiler specified." |
21 | echo -e "Usage:\n\t$0 <gcc-command>" | 21 | printf "Usage:\n\t$0 <gcc-command>\n" |
22 | exit 1 | 22 | exit 1 |
23 | fi | 23 | fi |
24 | 24 | ||
diff --git a/scripts/ver_linux b/scripts/ver_linux index dbb3037f1346..7de36df4eaa5 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux | |||
@@ -65,7 +65,7 @@ sed -n -e '/^.*\/libc-\([^/]*\)\.so$/{s//\1/;p;q}' < /proc/self/maps | |||
65 | ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ | 65 | ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ |
66 | 'NR==1{print "Dynamic linker (ldd) ", $NF}' | 66 | 'NR==1{print "Dynamic linker (ldd) ", $NF}' |
67 | 67 | ||
68 | ls -l /usr/lib/lib{g,stdc}++.so 2>/dev/null | awk -F. \ | 68 | ls -l /usr/lib/libg++.so /usr/lib/libstdc++.so 2>/dev/null | awk -F. \ |
69 | '{print "Linux C++ Library " $4"."$5"."$6}' | 69 | '{print "Linux C++ Library " $4"."$5"."$6}' |
70 | 70 | ||
71 | ps --version 2>&1 | grep version | awk \ | 71 | ps --version 2>&1 | grep version | awk \ |