Commit Graph

8 Commits

Author SHA1 Message Date
Volker Grabsch e412eb642d Move package versions from index.html back into the src/*.mk files
Most of the automatic conversion was done using the following Python script:

import os
import re
pkgs = sorted(mkfile[:-len('.mk')] for mkfile in os.listdir('src') if mkfile.endswith('.mk'))
with open('index.html', 'rb') as f:
    index = f.read()
pkgs_index = re.findall('<td class="package">([^<]*)</td>', index)
assert pkgs_index == pkgs
versions = dict(re.findall('<td id="([^"]*)-version">([^<]*)</td>', index))
assert sorted(versions.keys()) == pkgs
for pkg in pkgs:
    version = versions[pkg]
    with open('src/' + pkg + '.mk', 'rb') as f:
        mk = f.read()
    checksumpos = mk.index('\n$(PKG)_CHECKSUM ')
    versionline = '\n$(PKG)_VERSION  := %(version)s' % {'version': version}
    newmk = mk[:checksumpos] + versionline + mk[checksumpos:]
    with open('src/' + pkg + '.mk', 'wb') as f:
        f.write(newmk)
2013-07-22 01:41:31 +02:00
Niels Kristian Bech Jensen 245e30310b packages apr apr-util qdbm: small fixes 2013-06-29 22:50:38 +10:00
Niels Kristian Bech Jensen 3479a53c5f update package apr-util 2013-04-22 18:55:31 +10:00
Tony Theodore 871aed1969 package apr-util: ignore version 1.5.1 2012-12-12 21:16:09 +11:00
Tony Theodore 4ed13a9f30 all packages: use $(WGET) portability variable 2012-05-16 17:49:40 +10:00
Tony Theodore 1ca4d90c7a various packages: fix references to mingw-cross-env and doc/index.html 2012-05-02 21:36:59 +10:00
Tony Theodore fe2aea1a6d packages apr, apr-util, log4cxx: various changes and add log4cxx test program 2012-05-02 19:36:28 +10:00
Daniel Stonier 1940a74145 new packages: apr, apr-util, log4cxx 2012-05-02 17:06:54 +10:00