Permalink
Browse files

Fix genversion script on release builds (ie. commit 0)

  • Loading branch information...
1 parent 3ea7068 commit 7cfabbc9e551887f473b789558b2c3adfb804a22 @Nevcairiel committed Feb 12, 2015
Showing with 2 additions and 1 deletion.
  1. +2 −1 common/genversion.bat
@@ -37,7 +37,8 @@ IF EXIST includes\version_rev.h (
)
SET NEWVER=#define LAV_VERSION_BUILD %nbCOMMIT_PART%
IF NOT "%NEWVER%" == "%OLDVER%" (
- ECHO %NEWVER%> includes\version_rev.h
+ :: swapped order to avoid trailing newlines
+ > includes\version_rev.h ECHO %NEWVER%
)
GOTO :END

0 comments on commit 7cfabbc

Please sign in to comment.