[PATCH modular 01/10] Provide visual separation between modules.

Trevor Woerner twoerner at gmail.com
Thu Sep 30 14:25:50 PDT 2010


From: Trevor Woerner <twoerner at gmail.com>

When reviewing a build log or watching a build, it is easier to see which
module/component is being processed at arbitrary points if a clear, visual
separation exists between the processing of each module/component.

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
 build.sh |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/build.sh b/build.sh
index 816c81d..f73142c 100755
--- a/build.sh
+++ b/build.sh
@@ -74,6 +74,22 @@ failed() {
     fi
 }
 
+# print a pretty title to separate the processing of each module
+# arguments:
+#   $1 - string to format into title
+# returns:
+#   (irrelevant)
+module_title() {
+    # preconds
+    if [ X"$1" = X ]; then
+	return
+    fi
+
+    echo ""
+    echo "======================================================================"
+    echo "==  Processing module/component:  \"$1/$2\""
+}
+
 checkfortars() {
     M=$1
     C=$2
@@ -218,7 +234,7 @@ build() {
         return
     fi
 
-    echo "Processing module/component $1/$2"
+    module_title $1 $2
 
     if [ X"$BUILT_MODULES_FILE" != X ]; then
         echo "$1/$2" >> $BUILT_MODULES_FILE
-- 
1.7.3.1.45.g9855b



More information about the xorg-devel mailing list