From 108b0641aad54f38953ce997c1c2cc6e78dd0583 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 2 Mar 2015 19:44:02 +0200 Subject: [PATCH] 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 (cherry picked from commit b978e35636b23d4bff95c5bd2c8a379e10794d22) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1cf2ccd..d246865 100644 --- a/Makefile +++ b/Makefile @@ -196,7 +196,8 @@ test: docs: $(GENERATED_DOCS) README.html: README - $(ASCIIDOC_CMD) -o $@ $< + date=`stat -c "%y" $<` + $(ASCIIDOC_CMD) -a revdate="$$date" -o $@ $< dahdi-api.html: drivers/dahdi/dahdi-base.c build_tools/kernel-doc --kernel $(KSRC) $^ >$@