r913 - /scripts/grep-platforms

fst at users.alioth.debian.org fst at users.alioth.debian.org
Mon Jun 2 09:59:17 UTC 2008


Author: fst
Date: Mon Jun  2 09:59:17 2008
New Revision: 913

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=913
Log:
add styles

Modified:
    scripts/grep-platforms

Modified: scripts/grep-platforms
URL: http://svn.debian.org/wsvn/pkg-boinc/scripts/grep-platforms?rev=913&op=diff
==============================================================================
--- scripts/grep-platforms (original)
+++ scripts/grep-platforms Mon Jun  2 09:59:17 2008
@@ -1,6 +1,21 @@
 #!/bin/sh
 
 set -e
+
+OFFICIAL_PLATFORMS="
+    alpha-hp-linux-gnu
+    i686-pc-linux-gnu
+    ia64-linux-gnu
+    powerpc-linux-gnu
+    sparc-sun-linux-gnu
+    x86_64-pc-linux-gnu"
+
+is_official_platform() {
+    for P in $OFFICIAL_PLATFORMS; do
+        [ "$1" = "$P" ] && return 0
+    done
+    return 1
+}
 
 TMP_DIR=`mktemp -d`
 cd $TMP_DIR
@@ -12,9 +27,20 @@
     PLATFORM=`grep -m 1 "checking boinc platform..." $LOG | cut -d' ' -f4`
     ALTPLATF=`grep -m 1 "checking alternate boinc platform..." $LOG | \
       cut -d' ' -f5`
+
+    PSTYLE=""
+    if is_official_platform $PLATFORM; then
+        PSTYLE='<style="background-color: #B3DDF5;">'
+    fi
+
+    ASTYLE=""
+    if is_official_platform $ALTPLATF; then
+        ASTYLE='<style="background-color: #B3DDF5;">'
+    fi
+
     if [ "$ALTPLATF" = "none" ]; then
         ALTPLATF=""
     fi
 
-    echo "|| $ARCH || $PLATFORM || $ALTPLATF ||"
+    echo "|| $ARCH ||$PSTYLE $PLATFORM ||$ASTYLE $ALTPLATF ||"
 done




More information about the pkg-boinc-commits mailing list