projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://www.denx.de/git/u-boot-cfi-flash
[platform/kernel/u-boot.git]
/
scripts
/
binutils-version.sh
diff --git
a/scripts/binutils-version.sh
b/scripts/binutils-version.sh
index
0bc26cf
..
a343681
100755
(executable)
--- a/
scripts/binutils-version.sh
+++ b/
scripts/binutils-version.sh
@@
-14,7
+14,8
@@
if [ ${#gas} -eq 0 ]; then
exit 1
fi
exit 1
fi
-version_string=$($gas --version | head -1 | sed -e 's/.*) *\([0-9.]*\).*/\1/' )
+version_string=$($gas --version | head -1 | \
+ sed -e 's/(.*)//; s/[^0-9.]*\([0-9.]*\).*/\1/')
MAJOR=$(echo $version_string | cut -d . -f 1)
MINOR=$(echo $version_string | cut -d . -f 2)
MAJOR=$(echo $version_string | cut -d . -f 1)
MINOR=$(echo $version_string | cut -d . -f 2)