Skip to content

Commit

Permalink
Windows resource: handle dashes in the Git version gracefully
Browse files Browse the repository at this point in the history
Reported by postiffm as issue msysgit#14.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed May 31, 2012
1 parent df573d9 commit e6ada76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -2024,7 +2024,7 @@ $(SCRIPT_LIB) : % : %.sh

git.res: git.rc
$(QUIET_RC)$(RC) \
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst ., ,$(GIT_VERSION)))) \
$(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
-DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@

ifndef NO_PERL
Expand Down

0 comments on commit e6ada76

Please sign in to comment.