Skip to content

Commit 969a9e9

Browse files
committed
bin-wrappers: append .exe to target paths if necessary
When compiling with Visual Studio, the projects' names are identical to the executables modulo the extensions. Read: there will exist both a directory called `git` as well as an executable called `git.exe` in the end. Which means that the bin-wrappers *need* to target the `.exe` files lest they try to execute directories. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7a8ae43 commit 969a9e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,7 @@ bin-wrappers/%: wrap-for-bin.sh
26922692
@mkdir -p bin-wrappers
26932693
$(QUIET_GEN)sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
26942694
-e 's|@@BUILD_DIR@@|$(shell pwd)|' \
2695-
-e 's|@@PROG@@|$(patsubst test-%,t/helper/test-%,$(@F))|' < $< > $@ && \
2695+
-e 's|@@PROG@@|$(patsubst test-%,t/helper/test-%$(X),$(@F))$(patsubst git%,$(X),$(filter $(@F),$(BINDIR_PROGRAMS_NEED_X)))|' < $< > $@ && \
26962696
chmod +x $@
26972697

26982698
# GNU make supports exporting all variables by "export" without parameters.

0 commit comments

Comments
 (0)