lkml.org 
[lkml]   [2016]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 03/32] ver_linux: execute 'uname -a' from awk
Date
Execute 'uname -a' using the awk system() function.

Signed-off-by: Alexander Kapshuk <alexander.kapshuk@gmail.com>
---
scripts/ver_linux | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ver_linux b/scripts/ver_linux
index 2f1d494..c509f09 100755
--- a/scripts/ver_linux
+++ b/scripts/ver_linux
@@ -9,8 +9,8 @@ BEGIN {
usage = usage "Compare to the current minimal requirements in Documentation/Changes.\n"
print usage

-uname -a
-echo ' '
+ system("uname -a")
+ printf("\n")

gcc -dumpversion 2>&1 |
awk '/[0-9]+([.]?[0-9]+)+/ && !/not found$/{
--
2.7.3
\
 
 \ /
  Last update: 2016-06-28 13:01    [W:0.136 / U:1.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site