summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tools/announce-wrangler.py5
-rw-r--r--tools/commit-wrangler.py6
3 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 09e7e70..05efdbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-11-26 Thomas Thurman <tthurman@gnome.org>
+ * tools/announce-wrangler.py: linked language codes to po files
+ * tools/commit-wrangler.py: print revision url
+
+2008-11-26 Thomas Thurman <tthurman@gnome.org>
+
* tools/announce-wrangler.py: renamed ini file
* tools/commit-wrangler.py: rewriting in terms of moap
diff --git a/tools/announce-wrangler.py b/tools/announce-wrangler.py
index 7126262..cf92486 100644
--- a/tools/announce-wrangler.py
+++ b/tools/announce-wrangler.py
@@ -4,6 +4,7 @@ import glob
import wordpresslib # http://www.blackbirdblog.it/programmazione/progetti/28
import ConfigParser
import os
+import re
doaps = glob.glob("*.doap")
@@ -120,6 +121,10 @@ print "============ x8 x8 x8 ===== SEND THIS TO gnome-announce-list"
print text_version
print "============ x8 x8 x8 ===== ENDS"
+translations = re.sub('\((.*)\)',
+ '(<a href="http://svn.gnome.org/viewvc/metacity/trunk/po/\\1.po">\\1</a>)',
+ translations)
+
html_version = """\
<b>What is it ?</b><br />
<ul>%s</ul>
diff --git a/tools/commit-wrangler.py b/tools/commit-wrangler.py
index e61b85e..f3e15ea 100644
--- a/tools/commit-wrangler.py
+++ b/tools/commit-wrangler.py
@@ -27,6 +27,7 @@ import sys
import os
import posixpath
import ConfigParser
+import re
# FIXME: Needs tidying into separate functions.
@@ -106,8 +107,7 @@ if os.stat(change_filename)[8] == time_before:
# Update the changelog
-print commands.getoutput("moap cl ci")
+checkin = commands.getoutput("moap cl ci")
-#print
-#print 'http://svn.gnome.org/viewvc/metacity?rev=%s&view=rev' % (checkin)
+print re.sub(".*Committed revision (\\d+).*", 'http://svn.gnome.org/viewvc/metacity?rev=\\1&view=rev', checkin)