Documentation: only write changed *.rst files
Documentation/gen_commands.py use to re-write all auto-generated *.rst
file, changed or not. That in turn didn't work well with the internal
cache of the Sphinx documentation generator.

By comparing the SHA1 hash of the newly generated *.rst with the
current sha1 file, the time to execute "make docs" can be reduced
from 6.2s to 2.4s on my humble laptop.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f837350 commit 46e8bf74874809846c366ca6bfc542076e17770d
@Holger Schurig Holger Schurig authored on 22 Jul 2014
Sascha Hauer committed on 22 Jul 2014
Showing 1 changed file
View
Documentation/gen_commands.py