import re


explicitnumber = {
    '0x010100f0': '1.1.1',   # bugfix release, no change in hex version
    '0x010200f0': '1.2',
    '0x010300f0': '1.3',
    '0x010400f0': '1.4',
    }

FILES = {
    'Python/pyver.h': re.compile(r'PSYCO_VERSION_HEX\s+(0x[0-9a-fA-F]+)'),
    '../psyco/support.py': re.compile(r'__version__\s*=\s*(0x[0-9a-fA-F]+)'),
    '../doc/psycoguide.tex': re.compile(r'\\release\{([0-9.]+)\}'),
    '../setup.py': re.compile(r'version\s*=\s*\"([0-9.]+)\"'),
    '../../my/psyco/dist/Makefile': re.compile(r'version\s*=\s*([0-9.]+)'),
    '../../my/psyco/site/content/index.rst': re.compile(r'`Psyco ([0-9.]+)@'),
    '../../my/psyco/site/content/download.rst': re.compile(r'Current version is ([0-9.]+)'),
    '../../my/psyco/site/content/./download.rst': re.compile(r'Download Release ([0-9.]+)'),
    '../../my/psyco/site/content/doc.rst': re.compile(r'Psyco release ([0-9.]+)'),
    '../README.txt': re.compile(r'VERSION ([0-9.]+)'),
    }

versions = {}
for filename, regexp  in FILES.items():
    for line in open(filename, 'r'):
        match = regexp.search(line)
        if match:
            break
    else:
        raise Exception, "No version number found in " + filename
    ver = match.group(1)
    print '%20s  %s' % (ver, filename)
    if ver.startswith('0x'):
        ver = explicitnumber[ver]
    versions[ver] = filename

if len(versions) != 1:
    raise Exception, versions
else:
    print "versionchecker: ok"

@@ -468,24 +468,25 @@
 -9.%5D+)%5C%22'),%0A
+#
     '../../m
@@ -556,37 +556,27 @@
 %0A    '../../
-my/psyco/site
+www
 /content/ind
@@ -625,37 +625,27 @@
 %0A    '../../
-my/psyco/site
+www
 /content/dow
@@ -708,37 +708,27 @@
 %0A    '../../
-my/psyco/site
+www
 /content/./d
@@ -799,21 +799,11 @@
 /../
-my/psyco/site
+www
 /con

Fix local paths.