diff --git a/scripts/dumpdb.py b/scripts/dumpdb.py deleted file mode 100755 index 22f789974..000000000 --- a/scripts/dumpdb.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env python - -import sys -import anydbm - -if __name__ == '__main__': - if len(sys.argv) < 2: - print 'Usage: %s ' % sys.argv[0] - sys.exit(-1) - db = anydbm.open(sys.argv[1], 'r') - fd = open(sys.argv[2], 'w') - key = db.firstkey() - while key != None: - fd.write('%s => %s\n' % (key, db[key])) - key = db.nextkey(key) - db.close() - fd.close() -# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: diff --git a/scripts/makedb.py b/scripts/makedb.py deleted file mode 100755 index 63fa52b73..000000000 --- a/scripts/makedb.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python - -import re -import sys -import anydbm - -r = r'(.*?)\s+=>\s+(.*?)\n$' - -if __name__ == '__main__': - if len(sys.argv) < 3: - print 'Usage: %s ' % sys.argv[0] - sys.exit(-1) - fd = open(sys.argv[1], 'r') - db = anydbm.open(sys.argv[2], 'c') - for line in fd: - m = re.match(r, line) - if m: - (key, value) = m.groups()[-2:] - db[key] = value - else: - print 'Invalid line: %s' % line.strip() - db.close() - fd.close() -# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: