r5909 - /scripts/qa/versioncheck-html

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Thu Jul 19 16:19:05 UTC 2007


Author: gregoa-guest
Date: Thu Jul 19 16:19:04 2007
New Revision: 5909

URL: http://svn.debian.org/wsvn/?sc=1&rev=5909
Log:
change shell to bash as we are using bashism and colour code version differences

Modified:
    scripts/qa/versioncheck-html

Modified: scripts/qa/versioncheck-html
URL: http://svn.debian.org/wsvn/scripts/qa/versioncheck-html?rev=5909&op=diff
==============================================================================
--- scripts/qa/versioncheck-html (original)
+++ scripts/qa/versioncheck-html Thu Jul 19 16:19:04 2007
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Copyright gregor herrmann <gregor+debian at comodo.priv.at>, 2007
 # Released under the terms of the GNU GPL 2
@@ -33,6 +33,12 @@
 		}
 		td, th {
 			border: 1px solid black;
+		}
+		.upload {
+			background: lightsalmon;
+		}
+		.upgrade {
+			background: lightblue;
 		}
 	</style>
 </head>
@@ -96,13 +102,17 @@
 		if [ "$UPCUR" != "$UPNEW" -o "$RE" != "$PA" -a "$RE" != "$IN" -a "$RE" != "$NE" ]; then
 			echo "<tr>"
 			echo "<td>$P</td>"
-			echo "<td>${RE:--}</td>"
+			echo -n "<td"
+			if [ "$RE" != "$PA" ] ; then
+				echo -n " class='upload'"
+			fi
+			echo ">${RE:--}</td>"
 			echo "<td>${PA:--}"
 			[ -n "$IN" ] && echo "Incoming:&nbsp;$IN"
 			[ -n "$NE" ] && echo "NEW:&nbsp;$NE"
 			echo "</td>"
 			if [ "$UPCUR" != "$UPNEW" ] ; then 
-				echo "<td>${UPNEW:-No upstream sources!?}</td>"
+				echo "<td class='upgrade'>${UPNEW:-No upstream sources!?}</td>"
 			else
 				echo "<td>&nbsp;</td>"
 			fi




More information about the Pkg-perl-cvs-commits mailing list