aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-01-21 19:35:49 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-01-21 19:35:49 +0800
commit8d500b07d75a39042806e90abe96655feeabc657 (patch)
tree6254b581dce2dc1806a3e0c65fdb58f7b91e9ba0 /release.py
parent905c1e744eda5db8aa99777bbb556b77df67aa56 (diff)
downloadgsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.tar
gsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.tar.gz
gsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.tar.bz2
gsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.tar.lz
gsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.tar.xz
gsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.tar.zst
gsoc2013-empathy-8d500b07d75a39042806e90abe96655feeabc657.zip
Improve release script
svn path=/trunk/; revision=589
Diffstat (limited to 'release.py')
-rwxr-xr-xrelease.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/release.py b/release.py
index b7f3208f1..66057fe64 100755
--- a/release.py
+++ b/release.py
@@ -7,7 +7,6 @@ import csv
import datetime
from string import Template
-prev_tag = 'EMPATHY_0_21_5_1'
username = 'xclaesse'
upload_server = 'master.gnome.org'
template = '''\
@@ -159,12 +158,19 @@ class Project:
t = Template(template)
return t.substitute(locals())
+ def get_last_tag(self):
+ tags_str = self.exec_cmd('git-tag')
+ tags = tags_str.splitlines()
+
+ return tags[len(tags)-1]
+
def get_commits(self):
bugs = ''
co = None
commits = []
+ last_tag = self.get_last_tag()
- changes = self.exec_cmd ("git-log " + prev_tag + "..")
+ changes = self.exec_cmd ("git-log " + last_tag + "..")
for line in changes.splitlines(1):
if line.startswith('commit'):
if co != None:
@@ -246,7 +252,7 @@ class Project:
self.exec_cmd('git-tag -m "Tagged for release %s." %s' % ( self.package_version, new_tag))
- def write_news(self):
+ def generate_news(self):
bugs = ''
translations = ''
others = ''
@@ -263,6 +269,11 @@ class Project:
news = 'NEW in '+ self.package_version + '\n==============\n'
news += others + '\nBugs fixed:\n' + bugs + '\nTranslations:\n' + translations + '\n'
+ return news
+
+ def write_news(self):
+ news = self.generate_news()
+
f = open ('/tmp/NEWS', 'w')
s = f.write(news)
f.close()
@@ -285,5 +296,6 @@ class Project:
print self.get_release_notes()
p = Project()
+#print p.generate_news()
#p.write_news()
#p.release()