summaryrefslogtreecommitdiff
path: root/cad/src/tools/SponsorLogos/generateMD5.py
blob: 718680e381adeb1240e2e4b49170874df40dfff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# Copyright 2007 Nanorex, Inc.  See LICENSE file for details.

"""
This script produces the sponsors.md5 file. It assumes the sponsors.xml file is
in the same directory as it is being run in.

Usage: python generateMD5.py
"""

import md5, base64

m = md5.new()
m.update(open('sponsors.xml').read())
digest = "md5:" + base64.encodestring(m.digest())
open('sponsors.md5', 'w').write(digest)