pld-builder.new: client/make-request.sh - colors for build mode

glen glen at pld-linux.org
Sun Jun 17 16:35:35 CEST 2012


Author: glen                         Date: Sun Jun 17 14:35:35 2012 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- colors for build mode

---- Files affected:
pld-builder.new/client:
   make-request.sh (1.104 -> 1.105) 

---- Diffs:

================================================================
Index: pld-builder.new/client/make-request.sh
diff -u pld-builder.new/client/make-request.sh:1.104 pld-builder.new/client/make-request.sh:1.105
--- pld-builder.new/client/make-request.sh:1.104	Mon Jun 11 16:40:35 2012
+++ pld-builder.new/client/make-request.sh	Sun Jun 17 16:35:30 2012
@@ -664,12 +664,18 @@
 		msg "Using jobs $jobs"
 		echo "	<maxjobs>$jobs</maxjobs>"
 	fi
-	msg "Build mode: $build_mode"
 	if [ -z "$url" ]; then
 		msg "Using email $builder_email"
 	else
 		msg "Using URL $url"
 	fi
+
+	if [ "$build_mode" = "ready" ]; then
+		msg "Build mode: $(tput setaf 2)$build_mode$c_norm"
+	else
+		msg "Build mode: $(tput setaf 3)$build_mode$c_norm"
+	fi
+
 	msg "Queue-ID: $id"
 	echo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pld-builder.new/client/make-request.sh?r1=1.104&r2=1.105



More information about the pld-cvs-commit mailing list