Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using md5sum(check) and a python script(update) for md5 verification.
I would use md5sum for both check and update but getting the Makefile globbing right is a PiTA.
- Loading branch information
Showing
15 changed files
with
31 additions
and
251 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import glob | ||
import hashlib | ||
|
||
def md5sum(filename): | ||
with open(filename, mode='rb') as f: | ||
d = hashlib.md5() | ||
while True: | ||
buf = f.read(8192) | ||
if not buf: | ||
break | ||
d.update(buf) | ||
return d.hexdigest() | ||
|
||
def main(): | ||
f = [] | ||
for ext in ("stl","svg","dxf","png"): | ||
f.extend(glob.glob('*.%s' % ext)) | ||
for fname in f: | ||
print("%s\t%s" % (md5sum(fname), fname)) | ||
|
||
main() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.