Makefile: use SHELL_PATH when running generate-cmdlist.sh
authorAlejandro R. Sedeño <asedeno@mit.edu>
Thu, 10 Sep 2015 23:37:07 +0000 (19:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Sep 2015 00:49:00 +0000 (17:49 -0700)
Non-POSIX shells, such as /bin/sh on SunOS, do not support $((...))
arithmetic expansion or $(...) command substitution needed by
generate-cmdlist.sh. Make sure that we use a POSIX compliant shell
$(SHELL_PATH) when running generate-cmdlist.sh.

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Acked-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
index e564c0e39b5d0e4c61e470365ca289e896868f61..8f3901dc8d2ca84bce0aa42d4f828c66e932158b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1690,7 +1690,7 @@ $(BUILT_INS): git$X
 common-cmds.h: generate-cmdlist.sh command-list.txt
 
 common-cmds.h: $(wildcard Documentation/git-*.txt)
-       $(QUIET_GEN)./generate-cmdlist.sh command-list.txt >$@+ && mv $@+ $@
+       $(QUIET_GEN)$(SHELL_PATH) ./generate-cmdlist.sh command-list.txt >$@+ && mv $@+ $@
 
 SCRIPT_DEFINES = $(SHELL_PATH_SQ):$(DIFF_SQ):$(GIT_VERSION):\
        $(localedir_SQ):$(NO_CURL):$(USE_GETTEXT_SCHEME):$(SANE_TOOL_PATH_SQ):\