better make_quiet.sh filter with threaded builds.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 21 Dec 2010 04:55:46 +0000 (04:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 21 Dec 2010 04:55:46 +0000 (04:55 +0000)
build_files/cmake/example_scripts/make_quiet.sh

index 602d165e0dfd7ef457988e3145f613eb93f11aae..cc73ec9e649df7f0c417c74623c1f1fe0528bc83 100755 (executable)
@@ -1,6 +1,10 @@
 #!/bin/bash
 # filters CMake output to be more like nan-makefiles
 
-FILTER="^Scanning \|Linking \(C\|CXX\) static library \|Built target "
-make $@ | grep --line-buffered -v "$FILTER" | sed  -e 's/^.*\//  /'
+FILTER="^\[ *[0-9]*%] \|^Built target "
+make $@ | \
+               sed -u -e 's/^Linking .*\//Linking /' | \
+               sed -u -e 's/^.*\//  /' | \
+               grep --line-buffered -v "$FILTER"
+
 echo "Build Done"