Skip to content

Commit

Permalink
Fix for date extraction from git info.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthies committed Feb 23, 2022
1 parent 2d6e8df commit 86d1db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile.clang
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ release:
@echo @echo off>> $(VERSIONCMD)
@echo set GITVER=>> $(VERSIONCMD)
@echo FOR /F "tokens=3" %%%%A IN ('find "define VERNUMLEGACY " RubiChess.h') DO ( set VERSION=%%%%A)>> $(VERSIONCMD)
@echo FOR /F "tokens=2" %%%%A IN ('cmd /c "git show --name-only --abbrev-commit --date=format:%%%%Y%%%%m%%%%d | findstr /I /r /c:"^Date"" ') DO ( set GITVER=%%%%A) >> $(VERSIONCMD)
@echo FOR /F "tokens=2" %%%%A IN ('cmd /c "git show --name-only --abbrev-commit --date=format:%%%%Y%%%%m%%%%d | findstr /I /r /c:"^Date: "" ') DO ( set GITVER=%%%%A) >> $(VERSIONCMD)
@echo FOR /F "tokens=2" %%%%A IN ('cmd /c "git show --name-only --abbrev-commit | findstr /r /c:"^commit"" ') DO ( set GITID=%%%%A) >> $(VERSIONCMD)
@echo if not [%%GITVER%%]==[] (>> $(VERSIONCMD)
@echo set VERSION=%%GITVER%%>> $(VERSIONCMD)
Expand Down

0 comments on commit 86d1db6

Please sign in to comment.