]> git.openfabrics.org - ~tnikolova/compat/.git/commitdiff
compat: use -s instead of -q
authorLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 5 May 2012 01:00:33 +0000 (18:00 -0700)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Sat, 5 May 2012 01:00:33 +0000 (18:00 -0700)
And also fix variable propagation when ckmake -t is used.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
bin/ckmake

index 1e98097484ce0f13dcfe969f6c37f3f5cd270472..2d422af9bf1e7946b99bccccaaa99e6135b37e75 100755 (executable)
@@ -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