From 0ab94cd7b71098c5280de878753f26aaffa01f68 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 4 May 2012 18:00:33 -0700 Subject: [PATCH] compat: use -s instead of -q And also fix variable propagation when ckmake -t is used. Signed-off-by: Luis R. Rodriguez --- bin/ckmake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/ckmake b/bin/ckmake index 1e98097484ce..2d422af9bf1e 100755 --- a/bin/ckmake +++ b/bin/ckmake @@ -26,6 +26,9 @@ KERNEL_DIR="/lib/modules" KLIBS="" LOG="ckmake.log" TIME="0" +QUIET="" +ARGS="" + RET="" LSB_RED_ID=$(/usr/bin/lsb_release -i -s) @@ -69,9 +72,6 @@ function usage() echo -e "a target 'linux' on your Makefile you can run 'cmake linux'" } -ARGS="" -QUIET="" - for i in $@ ; do case $1 in "-h") @@ -86,7 +86,7 @@ for i in $@ ; do TIME="1" shift ;; - "-q") + "-s") QUIET="-s" shift ;; @@ -138,7 +138,7 @@ if [[ $TIME != "1" ]]; then exit $RET fi -time $0 -time $0 | egrep "real|user|sys" +time $0 $QUIET $ARGS +time $0 $QUIET $ARGS | egrep "real|user|sys" exit $RET -- 2.30.2