]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ver_linux: make --version, use regex to find version number
authorAlexander Kapshuk <alexander.kapshuk@gmail.com>
Mon, 12 Oct 2015 18:39:42 +0000 (21:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:55:26 +0000 (21:55 -0700)
commit1d60b873aecc6fce4893b76500c30374f8c9e394
treede5176f5720dfe84d4b728e255b12bbc09c02a12
parent235024e519fa16242f916ec41b00547582f561a7
ver_linux: make --version, use regex to find version number

Rely on regex to find the version number, rather than a field number.
Reduce the number of 'awk' invocations from two to one.

Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/ver_linux