summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2008-02-26 18:44:15 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-02-26 18:44:15 +0000
commit9d9576612b86e8d6d2534a6c43d080f2b1632701 (patch)
treeae7036bc913617b19305c6895d930d5eb70218eb /tools
parentabdb3fd8b9320376dffc387eeb99ef09389a6152 (diff)
downloadmetacity-9d9576612b86e8d6d2534a6c43d080f2b1632701.tar.gz
metacity-9d9576612b86e8d6d2534a6c43d080f2b1632701.tar.bz2
2.23.0 release.
svn path=/trunk/; revision=3600
Diffstat (limited to 'tools')
-rw-r--r--tools/release-wrangler.py27
1 files changed, 24 insertions, 3 deletions
diff --git a/tools/release-wrangler.py b/tools/release-wrangler.py
index 16e06ae..78dbc6d 100644
--- a/tools/release-wrangler.py
+++ b/tools/release-wrangler.py
@@ -102,7 +102,13 @@ def version_numbers():
if version_value in versions:
try:
- version['micro_next'] = versions[versions.index(version_value)+1]
+ version_index = versions.index(version_value)+1
+
+ if versions[version_index] == version['micro']:
+ # work around metacity giving "1" twice
+ version_index += 1
+
+ version['micro_next'] = versions[version_index]
except:
report_error("You gave a list of micro version numbers, but we've used them up!")
else:
@@ -116,6 +122,7 @@ def version_numbers():
version['string'] = '%(major)s.%(minor)s.%(micro)s' % (version)
version['filename'] = '%(name)s-%(string)s.tar.gz' % (version)
+
return version
def check_file_does_not_exist(version):
@@ -123,7 +130,7 @@ def check_file_does_not_exist(version):
report_error("Sorry, you already have a file called %s! Please delete it or move it first." % (version['filename']))
def is_date(str):
- return len(str)>3 and str[4]=='-'
+ return len(str)>4 and str[4]=='-'
def scan_changelog(version):
changelog = file("ChangeLog").readlines()
@@ -144,10 +151,12 @@ def scan_changelog(version):
entries = []
def assumed_surname(name):
+ if name=='': return ''
# might get more complicated later, but for now...
return name.split()[-1]
def assumed_forename(name):
+ if name=='': return ''
return name.split()[0]
bug_re = re.compile('bug \#?(\d+)', re.IGNORECASE)
@@ -236,11 +245,23 @@ def edit_news_entry(version):
def translator_name(language):
name = 'unknown'
- for line in file('po/%s.po' % (language)).readlines():
+
+ if ',' in language:
+ language = language[:language.find(',')].replace('.po','')
+
+ filename = 'po/%s.po' % (language)
+
+ if not os.access(filename, os.F_OK):
+ # Never mind the translator being unknown, we don't even
+ # know about the language!
+ return 'Mystery translator (%s)' % (language)
+
+ for line in file(filename).readlines():
match = last_translator_re.search(line)
if match:
name = match.group(1).rstrip().lstrip()
break
+
return "%s (%s)" % (name, language)
thanks += '\nTranslations\n'