[88863] users/pixilla/scripts/mp-trac-user-ports

pixilla at macports.org pixilla at macports.org
Fri Jan 13 12:21:23 PST 2012


Revision: 88863
          http://trac.macports.org/changeset/88863
Author:   pixilla at macports.org
Date:     2012-01-13 12:21:23 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
pixilla/scripts:
- Add tickets column to ports table.

Modified Paths:
--------------
    users/pixilla/scripts/mp-trac-user-ports

Modified: users/pixilla/scripts/mp-trac-user-ports
===================================================================
--- users/pixilla/scripts/mp-trac-user-ports	2012-01-13 20:19:33 UTC (rev 88862)
+++ users/pixilla/scripts/mp-trac-user-ports	2012-01-13 20:21:23 UTC (rev 88863)
@@ -1,27 +1,28 @@
 #!/bin/sh
-echo "||'''Port'''||'''Repository'''||'''Category'''||"; \
+echo "||'''Port'''||'''Category'''||'''Repository'''||'''Tickets'''||"; \
 for name in $(port echo "maintainer:(\W|^)$1(\W|$)"); do \
-    svn info $(port file $name) 2>&1 | \
-    grep -B 20 -E "^Revision" | \
-    grep -E "^URL:\ http://svn.macports.org/repository/macports/" | \
-    sed -e 's|^.*svn.macports.org/repository/macports/||' \
-        -e 's|/Portfile$||' | \
-    awk -v NAME=$name 'BEGIN \
+    svn info $(port file $name) 2>&1 \
+    | grep -B 20 -E "^Revision" \
+    | grep -E '^URL: https?://svn.macports.org/repository/macports/' \
+    | sed -E \
+        -e 's|^URL: https?://svn.macports.org/repository/macports/||' \
+        -e 's|/Portfile$||' \
+    | awk -v NAME=$name 'BEGIN \
         { FS = "/" } ; \
         { printf "||[source:"$0" "NAME"]||[source:" } ; \
         { \
-            for (x=1; x<NF-1; x++) { \
+            for (x=1; x<NF; x++) { \
                 printf "%s", $x ; \
-                if (x != NF-2) printf "/" \
+                if (x != NF-1) printf "/" \
             } \
         } ; \
-        { printf " "$(NF-3)"]||[source:" } ; \
+        { printf " "$(NF-1)"]||[source:" } ; \
         { \
-            for (x=1; x<NF; x++) { \
+            for (x=1; x<NF-1; x++) { \
                 printf "%s", $x ; \
-                if (x != NF-1) printf "/" \
+                if (x != NF-2) printf "/" \
             } \
         } ; \
-        { printf " "$(NF-1)"]||\n" } ; \
-        ' ; \
+        { printf " "$(NF-3)"]||[[TicketQuery(port="NAME"&status=new|assigned|reopened)]]||\n" } ; \
+        ' ;
 done
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120113/a691a7c7/attachment.html>


More information about the macports-changes mailing list