summaryrefslogtreecommitdiffstats
path: root/scripts/ver_linux
diff options
context:
space:
mode:
authorAlexander Kapshuk <alexander.kapshuk@gmail.com>2016-08-22 21:19:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-31 13:59:31 +0200
commit2d187d58553becd61677a2db0181ff2c7b07c8a3 (patch)
tree7fc5ff008d3437ed2d1d185714f1f70509fe4807 /scripts/ver_linux
parenta46b195ca0d88134a6f60dc28532205075c70cff (diff)
downloadblackbird-op-linux-2d187d58553becd61677a2db0181ff2c7b07c8a3.tar.gz
blackbird-op-linux-2d187d58553becd61677a2db0181ff2c7b07c8a3.zip
ver_linux: complete awk implementation
The algorithm that extracts the version number of the utility being queried, and prints the name of the utility and its version number is currently implemented in awk. The code is used throughout the script, making its use repetative. The proposed implementation confines the algorithm in question to a function, which makes the script easier to read overall, as well as considerably reduces the number of lines of code. Every attempt has been made to retain the look and the format generated by the current implementation. Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/ver_linux')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud