2 # Copyright (C) 2008 Jelmer Vernooij <jelmer@samba.org>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 from bzrlib.branch import Branch
22 DOWNLOAD_URL = "http://samba.org/~jelmer/bzr"
24 def write_releaselist(f):
25 f.write("\nReleases\n")
26 f.write("--------\n\n")
30 for release in b.tags.get_tag_dict():
31 (name, version) = release.rsplit("-", 1)
32 assert name == "bzr-svn"
33 versions.append(version)
35 def version_sort(a, b):
39 return [int(x) for x in a.split(".")]
40 return cmp(versiontuple(a), versiontuple(b))
42 versions.sort(version_sort, reverse=True)
44 for version in versions:
45 f.write("* `%s`_\n" % version)
49 for version in versions:
50 f.write(".. _%s: %s/bzr-svn-%s.tar.gz\n" % (version, DOWNLOAD_URL, version))
55 f.write("#FORMAT rst\n")
56 f.write(open("README", "r").read())
58 f.write(open("INSTALL", "r").read())
62 bzr-svn was written by JelmerVernooij_ with the help from various other people.
63 See the AUTHORS file in the source distribution for a list.
65 .. _JelmerVernooij: http://samba.org/~jelmer/