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.
8 lines
177 B
Python
Executable File
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())
|