scripts: fix binutils-version.sh for 'as' without a package.
authorBill Pringlemeir <bpringlemeir@nbsps.com>
Wed, 7 Jan 2015 15:34:15 +0000 (10:34 -0500)
committerTom Rini <trini@ti.com>
Thu, 8 Jan 2015 16:00:45 +0000 (11:00 -0500)
commitb6b1b44586778885f37e1a2f2b17da7ddb04d565
tree15899ecd0ddedc38ddbad2be6229b93076556c5d
parentb4ad44baab713af371b1113dd63dd222ba73ba13
scripts: fix binutils-version.sh for 'as' without a package.

Commit 73c25753 fixed the common issue that binutil packages (tool/organization
that packaged or built the bin-utils) are included in brackets and this may
falsely be recognized as a version.  However, some tools do not provide a
'package' and previously we add the 'Gnu assembler..' to the version.

Strip out the '(package version text)' and then look for a ##.## string.

Signed-off-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
Tested-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
scripts/binutils-version.sh