Documentation: sort sources for gitman.texi
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 22 Jan 2017 02:41:53 +0000 (02:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jan 2017 18:56:52 +0000 (10:56 -0800)
Sorting the sources makes it easier to compare the output using diff.
In addition, it aids groups creating reproducible builds, as the order
of the files is no longer dependent on the file system or other
irrelevant factors.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile
index b43d66eae6e154b229aa1477b8454ce2918ba8b9..5e32bbe9137c9aa5b0483da5c30181f9f54b7381 100644 (file)
@@ -373,7 +373,7 @@ user-manual.pdf: user-manual.xml
 
 gitman.texi: $(MAN_XML) cat-texi.perl
        $(QUIET_DB2TEXI)$(RM) $@+ $@ && \
-       ($(foreach xml,$(MAN_XML),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \
+       ($(foreach xml,$(sort $(MAN_XML)),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \
                --to-stdout $(xml) &&) true) > $@++ && \
        $(PERL_PATH) cat-texi.perl $@ <$@++ >$@+ && \
        rm $@++ && \