From: Trevor Woerner <[email protected]>

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 <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to