From: Olaf Hering Date: Mon, 26 Jan 2015 15:07:21 +0000 (+0200) Subject: git-gui: sort entries in tclIndex X-Git-Tag: gitgui-0.21.0~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/82b2cab317863eb6322386157f73b0e021b72ba2 git-gui: sort entries in tclIndex ALL_LIBFILES uses wildcard, which provides the result in directory order. This order depends on the underlying filesystem on the buildhost. To get reproducible builds it is required to sort such list before using them. Signed-off-by: Olaf Hering Signed-off-by: Pat Thoyts --- diff --git a/Makefile b/Makefile index 4f00bdd3d6..fe30be38dc 100644 --- a/Makefile +++ b/Makefile @@ -259,7 +259,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS rm -f $@ ; \ echo '# Autogenerated by git-gui Makefile' >$@ && \ echo >>$@ && \ - $(foreach p,$(PRELOAD_FILES) $(ALL_LIBFILES),echo '$(subst lib/,,$p)' >>$@ &&) \ + $(foreach p,$(PRELOAD_FILES) $(sort $(ALL_LIBFILES)),echo '$(subst lib/,,$p)' >>$@ &&) \ echo >>$@ ; \ fi