Windows resource: handle dashes in the Git version gracefully

Reported by postiffm as issue #14. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Johannes Schindelin committed May 31, 2012 at 12:53 UTC 2be50eae75ef1d6c83a0546ebe7309f368b5824f
1 file changed +1 -1
Makefile
+1 -1
@@ -1777,7 +1777,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
1777
1778 git.res: git.rc
1779 $(QUIET_RC)$(RC) \
1780 - $(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst ., ,$(GIT_VERSION)))) \
1780 + $(join -DMAJOR= -DMINOR= -DPATCH=, $(wordlist 1,3,$(subst -, ,$(subst ., ,$(GIT_VERSION))))) \
1781 -DGIT_VERSION="\\\"$(GIT_VERSION)\\\"" $< -o $@
1782
1783 ifndef NO_PERL