summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2012-02-16 11:57:31 -0500
committerW. Trevor King <wking@drexel.edu>2012-02-16 11:57:35 -0500
commit0d3d9a3780a27f1c80833638ad0622bf4e67023d (patch)
treeaa81caa61cb294246aef4b2d9fc7266c572509e1
parent89dc85d66b1ce98705206b6e492dc6302f843b97 (diff)
Fix release.py to allow uncommented initial _VERSION.
I was in favor of always leaving _VERSION commented in the trunk, since released branches should fork off the trunk: trunkA -> trunkB -> trunkC -> trunkD `-> 1.0.0 `-> 1.1.0 `-> 1.0.1 `-> 1.1.1 But that doesn't seem to have been how things have worked out in BE. In any case, you will need to release on top of a previous release (e.g. 1.0.1 on top of 1.0.0 in my above example), so we cannot depend on an initial comment character before _VERSION.
-rwxr-xr-xrelease.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release.py b/release.py
index 0e144d8..7464871 100755
--- a/release.py
+++ b/release.py
@@ -66,7 +66,7 @@ def pending_changes():
def set_release_version(tag):
print "set libbe.version._VERSION = '%s'" % tag
- invoke(['sed', '-i', "s/^# *_VERSION *=.*/_VERSION = '%s'/" % tag,
+ invoke(['sed', '-i', "s/^[# ]*_VERSION *=.*/_VERSION = '%s'/" % tag,
os.path.join('libbe', 'version.py')])
def remove_makefile_libbe_version_dependencies(filename):