Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/maint-helper.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-07-08 14:05:54 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-08 14:05:54 (GMT)
commita2c0e52c203e7a19b62bf4e6ba1ab034df50c74e (patch)
tree9c561df2bc91409fa6e77dcf48bd99c5571f2ce2 /maint-helper.py
parent1d567905c8b182dc11c951db6ce192556dafac47 (diff)
Add commit to git, untested
Diffstat (limited to 'maint-helper.py')
-rwxr-xr-xmaint-helper.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/maint-helper.py b/maint-helper.py
index 5d629ff..a4454fe 100755
--- a/maint-helper.py
+++ b/maint-helper.py
@@ -57,9 +57,9 @@ def cmd_build_snapshot():
print 'Build %s...' % tarball
- #os.spawnlp(os.P_WAIT, 'make', 'make', 'distcheck')
+ os.spawnlp(os.P_WAIT, 'make', 'make', 'distcheck')
- #os.rename('%s-%s.tar.bz2' % (name, version), tarball)
+ os.rename('%s-%s.tar.bz2' % (name, version), tarball)
print 'Update NEWS.sugar...'
@@ -99,6 +99,17 @@ def cmd_build_snapshot():
f.write(news)
f.close()
+ print 'Committing to git...'
+
+ changelog = 'Snapshot %d.' % alphatag
+ retcode = subprocess.call(['git', 'commit', '-a', '-m % s' % changelog])
+ if retcode:
+ print 'ERROR - cannot commit to git'
+
+ retcode = subprocess.call(['git', 'push'])
+ if retcode:
+ print 'ERROR - cannot push to git'
+
print 'Done.'
def check_licenses(path, license, missing):