aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-12-06 08:28:02 -0500
committerW. Trevor King <wking@drexel.edu>2010-12-06 08:45:25 -0500
commitb949962d938e3338288d1c06a1ae26b71c213ffe (patch)
tree6e2074efdafdb1def88ba510248eba15c31e6947 /release.py
parent362876d600e41aaa6bdc112c0bb9bbccedef754f (diff)
downloadbugseverywhere-b949962d938e3338288d1c06a1ae26b71c213ffe.tar.gz
Update release.py to generate .be/id-cache and remove update_copyright.py.
The log output from generating .be/id-cache might confuse new BE users, so we should distribute the bug repo with a pre-built cache. update_copyright.py isn't much use without the Git repo from which it extracts authorship info, so we'll have a cleaner release tarball without it.
Diffstat (limited to 'release.py')
-rwxr-xr-xrelease.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/release.py b/release.py
index 23ac476..572df5a 100755
--- a/release.py
+++ b/release.py
@@ -119,6 +119,11 @@ def set_vcs_name(be_dir, vcs_name='None'):
invoke(['sed', '-i', "s/^vcs_name:.*/vcs_name: %s/" % vcs_name,
filename])
+def make_id_cache():
+ """Generate .be/id-cache so users won't need to.
+ """
+ invoke(['./be', 'list'])
+
def create_tarball(tag):
release_name='be-%s' % tag
export_dir = release_name
@@ -130,7 +135,12 @@ def create_tarball(tag):
shutil.copy(os.path.join('libbe', '_version.py'),
os.path.join(export_dir, 'libbe', '_version.py'))
make_changelog(os.path.join(export_dir, 'ChangeLog'), tag)
+ make_id_cache()
+ print 'copy .be/id-cache to %s/.be/id-cache' % export_dir
+ shutil.copy(os.path.join('.be', 'id-cache'),
+ os.path.join(export_dir, '.be', 'id-cache'))
set_vcs_name(os.path.join(export_dir, '.be'))
+ os.remove(os.path.join(export_dir, 'update_copyright.py'))
tarball_file = '%s.tar.gz' % release_name
print 'create tarball', tarball_file
invoke(['tar', '-czf', tarball_file, export_dir])