Fix handling of "branch ;" in RCS file.
[cvs2svn.git] / setup.py
bloba70007a599ec209487e95c0c2753404db2c3630a
1 #!/usr/bin/env python
3 import os
4 import sys
5 from distutils.core import setup
7 assert sys.version >= '2', "Install Python 2.0 or greater"
9 def get_version():
10 "Return the version number listed in dist.sh, or None if can't find one."
11 f = open('dist.sh')
12 while 1:
13 line = f.readline().strip()
14 if line is None:
15 break
16 if line.find("VERSION=") == 0:
17 return line[8:]
18 return None
20 setup(
21 # Metadata.
22 name = "cvs2svn",
23 version = get_version(),
24 description = "CVS-to-Subversion repository converter",
25 author = "The cvs2svn Team",
26 author_email = "<dev@cvs2svn.tigris.org>",
27 url = "http://cvs2svn.tigris.org/",
28 license = "Apache-style",
29 # Data.
30 packages = ["cvs2svn_rcsparse"],
31 scripts = ["cvs2svn"]