Files
lammps/doc/utils/sha1sum.py
Richard Berger ea368919f3 Remove sha1sum dependency for doc generation
On MacOS X there is no sha1sum. So to simplify doc generation on those systems
use a Python script instead to generate a unique string from the repository
path.
2016-08-26 00:01:34 -04:00

8 lines
177 B
Python
Executable File

#!/bin/env python
# simple utility which reimplements sha1sum using Python
import hashlib
import sys
s = hashlib.sha1()
s.update(sys.stdin.read().encode())
print(s.hexdigest())