diff options
| author | bwarsaw | 2000-06-20 05:48:29 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-06-20 05:48:29 +0000 |
| commit | c0d80cc3e02f5f093f356afeb4c91b3f1e92e882 (patch) | |
| tree | 90be69a46b908894e199281dcbc12e5a54d99d37 /admin/bin/Release.py | |
| parent | e4c77cc40facd1297c0e3fa4c820403892eb5c32 (diff) | |
| download | mailman-c0d80cc3e02f5f093f356afeb4c91b3f1e92e882.tar.gz mailman-c0d80cc3e02f5f093f356afeb4c91b3f1e92e882.tar.zst mailman-c0d80cc3e02f5f093f356afeb4c91b3f1e92e882.zip | |
checkout(), make_pkg(): Some re-org and fixing for new SourceForge
development platform.
Diffstat (limited to 'admin/bin/Release.py')
| -rwxr-xr-x | admin/bin/Release.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/admin/bin/Release.py b/admin/bin/Release.py index 45959f9e5..0ee3d12e4 100755 --- a/admin/bin/Release.py +++ b/admin/bin/Release.py @@ -92,29 +92,33 @@ def tag_release(tagname, retag): option = '-F' cvsdo('tag %s %s' % (option, relname)) -def checkout(tagname): +def checkout(tagname, tail): print 'checking out...', # watch out for dots in the name table = string.maketrans('.', '_') # To be done from writeable repository relname = '"Release_' + string.translate(tagname, table) + '"' - cvsdo('export -k kv -r %s -d %s mailman' % (relname, releasedir())) - os.rename('%s/doc' % releasedir(), 'mailman-doc') + cvsdo('export -k kv -r %s -d %s mailman' % (relname, tail)) + os.rename('%s/doc' % tail, 'mailman-doc') def make_pkg(tagname): - print 'Creating release dir', releasedir(tagname), '...' + dir = releasedir(tagname) + print 'Creating release dir', dir, '...' + if not os.path.isdir(dir): + os.mkdir(dir) + head, tail = os.path.split(dir) # this can't be done from a working directory curdir = os.getcwd() try: - os.chdir(tempfile.gettempdir()) - checkout(tagname) + os.chdir(head) + checkout(tagname, tail) print 'making tarball...' - tarball = releasedir() + '.tgz' - os.system('tar cvf - %s | gzip -c > %s' % - ('mailman-' + tagname, tarball)) - os.system('tar cvf - mailman-doc | gzip -c > mailman-doc.gz') + relname = 'mailman-' + tagname + os.system('tar cvzf %s --exclude .cvsignore %s' % + (relname + '.tgz', relname)) + os.system('tar cvzf mailman-doc.tgz --exclude .cvsignore mailman-doc') finally: os.chdir(curdir) |
