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 <olaf@aepfle.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Olaf Hering committed Jan 26, 2015 at 17:07 UTC 82b2cab317863eb6322386157f73b0e021b72ba2
1 file changed +1 -1
Makefile
+1 -1
@@ -259,7 +259,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
259 rm -f $@ ; \
260 echo '# Autogenerated by git-gui Makefile' >$@ && \
261 echo >>$@ && \
262 - $(foreach p,$(PRELOAD_FILES) $(ALL_LIBFILES),echo '$(subst lib/,,$p)' >>$@ &&) \
262 + $(foreach p,$(PRELOAD_FILES) $(sort $(ALL_LIBFILES)),echo '$(subst lib/,,$p)' >>$@ &&) \
263 echo >>$@ ; \
264 fi
265