summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlejandro R. Sedeño <asedeno@mit.edu>2015-09-10 23:37:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-11 00:49:00 (GMT)
commit57cee8ac5f108f1e4a51372b37c82a72b0407042 (patch)
tree0ecd5e6e2440e12e2b34d83a33d848df9b5c5b21 /Makefile
parent82aec45b7d9dd235b6a490d2c93600e13c36c40d (diff)
downloadgit-57cee8ac5f108f1e4a51372b37c82a72b0407042.zip
git-57cee8ac5f108f1e4a51372b37c82a72b0407042.tar.gz
git-57cee8ac5f108f1e4a51372b37c82a72b0407042.tar.bz2
Makefile: use SHELL_PATH when running generate-cmdlist.sh
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e564c0e..8f3901d 100644
--- 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):\