diff options
author | W. Trevor King <wking@drexel.edu> | 2012-02-16 11:57:31 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2012-02-16 11:57:35 -0500 |
commit | 0d3d9a3780a27f1c80833638ad0622bf4e67023d (patch) | |
tree | aa81caa61cb294246aef4b2d9fc7266c572509e1 /release.py | |
parent | 89dc85d66b1ce98705206b6e492dc6302f843b97 (diff) | |
download | bugseverywhere-0d3d9a3780a27f1c80833638ad0622bf4e67023d.tar.gz |
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.
Diffstat (limited to 'release.py')
-rwxr-xr-x | release.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |