configure: fixed stray output from endian.test when not verbose
authorRohan McGovern <rohan.mcgovern@nokia.com>
Tue, 28 Feb 2012 05:16:09 +0000 (15:16 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 06:29:00 +0000 (07:29 +0100)
The output of building and running config.tests are generally silent
unless -verbose is passed to configure.

However, there was one place in endian.test where a check for $VERBOSE
was missed, leading to confusing output like:

    Creating qmake. Please wait...
    rm -f endiantest.o
    rm -f *~ core *.core
    rm -f endiantest
    rm -f Makefile
    rm -f endiantest.o
    rm -f *~ core *.core
    rm -f endiantest
    rm -f Makefile

Change-Id: Idabe85f2b188ed9da713392d116d4d2853be2189
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
config.tests/unix/endian.test

index 6c5c311..a662011 100755 (executable)
@@ -41,7 +41,11 @@ elif strings - $binary | grep MostSignificantByteFirst >/dev/null 2>&1; then
 fi
 
 # make clean as this tests is compiled for both the host and the target
-$MAKE distclean
+if [ "$VERBOSE" = "yes" ]; then
+    $MAKE distclean
+else
+    $MAKE distclean >/dev/null 2>&1
+fi
 
 # done
 if [ "$ENDIAN" = "LITTLE" ]; then