Skip to content
Snippets Groups Projects
Commit ea368919 authored by Richard Berger's avatar Richard Berger
Browse files

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.
parent e27196e9
No related branches found
No related tags found
No related merge requests found
# Makefile for LAMMPS documentation
SHA1 = $(shell echo $USER-$PWD | sha1sum | cut -f1 -d" ")
SHA1 = $(shell echo $USER-$PWD | python utils/sha1sum.py)
BUILDDIR = /tmp/lammps-docs-$(SHA1)
RSTDIR = $(BUILDDIR)/rst
VENV = $(BUILDDIR)/docenv
......
#!/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())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment