README: use file time for reproducable build

https://bugs.debian.org/776622 asks to avoid using the build time in the
generated result to help make the build reproducable.

This fix uses the timestamp of README for generating the timestamp in
the footer of README.html.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
(cherry picked from commit b978e35636)
This commit is contained in:
Tzafrir Cohen 2015-03-02 19:44:02 +02:00 committed by Russ Meyerriecks
parent 368d8bec4b
commit 108b0641aa

View File

@ -196,7 +196,8 @@ test:
docs: $(GENERATED_DOCS) docs: $(GENERATED_DOCS)
README.html: README README.html: README
$(ASCIIDOC_CMD) -o $@ $< date=`stat -c "%y" $<`
$(ASCIIDOC_CMD) -a revdate="$$date" -o $@ $<
dahdi-api.html: drivers/dahdi/dahdi-base.c dahdi-api.html: drivers/dahdi/dahdi-base.c
build_tools/kernel-doc --kernel $(KSRC) $^ >$@ build_tools/kernel-doc --kernel $(KSRC) $^ >$@