docs: create reproducible html
authorOlaf Hering <olaf@aepfle.de>
Tue, 3 Feb 2015 11:45:35 +0000 (12:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 24 Feb 2015 16:19:02 +0000 (16:19 +0000)
The Makefile uses wildcard to collect a list of files. The resulting
list of files is in directory order, which is random. As a result the
generated html files will differ when build on different hosts.

Use the built-in sort function to get a stable list of files.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/Makefile

index 2c0903b10ab08fbe7fac78e52a007ca116c95340..854fb50d847a25c5d8be9970fa59ad50a35efad6 100644 (file)
@@ -7,14 +7,14 @@ VERSION               := $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenversion)
 DOC_ARCHES      := arm x86_32 x86_64
 
 # Documentation sources to build
-MAN1SRC-y := $(wildcard man/xl*.pod.1)
-MAN1SRC-y += $(wildcard man/xenstore*.pod.1)
+MAN1SRC-y := $(sort $(wildcard man/xl*.pod.1))
+MAN1SRC-y += $(sort $(wildcard man/xenstore*.pod.1))
 
-MAN5SRC-y := $(wildcard man/xl*.pod.5)
+MAN5SRC-y := $(sort $(wildcard man/xl*.pod.5))
 
-MARKDOWNSRC-y := $(wildcard misc/*.markdown)
+MARKDOWNSRC-y := $(sort $(wildcard misc/*.markdown))
 
-TXTSRC-y := $(wildcard misc/*.txt)
+TXTSRC-y := $(sort $(wildcard misc/*.txt))
 
 
 DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(MAN1SRC-y))