mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 12:41:10 +02:00
This will help diff-ing logs between invocations to see what is changing when refactoring. When used for creating an archive, it will help creating a reproducible file.
16 lines
327 B
Python
16 lines
327 B
Python
import sys
|
|
import glob
|
|
import hashlib
|
|
|
|
def main():
|
|
for arg in sys.argv[1:]:
|
|
for name in sorted(glob.glob(arg)):
|
|
m = hashlib.md5()
|
|
with open(name, 'rb') as fid:
|
|
m.update(fid.read())
|
|
print('%-45s %s' % (name, m.hexdigest()))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|