Browse Source

Fixed year marker in build information.

The year wasn't being set reliably by version.cmd.
Iain Patterson 8 years ago
parent
commit
b2e2a895d7
1 changed files with 4 additions and 5 deletions
  1. 4 5
      version.cmd

+ 4 - 5
version.cmd

@@ -33,11 +33,10 @@ if "%commit%" == "prerelease" set flags=VS_FF_PRERELEASE
 if "%BUILD_NUMBER%" == "" set BUILD_NUMBER=0
 
 @rem Copyright year provided by Jenkins.
-if "%BUILD_ID%" == "" (set year=) else (
-  set md=%BUILD_ID:*-=%
-  call set year=%%BUILD_ID:%md%=%%
-  set year=%year:~0,-1%
-)
+set md=%BUILD_ID:*-=%
+call set year=%%BUILD_ID:%md%=%%
+set year=%year:~0,-1%
+if "%BUILD_ID%" == "" set year=
 
 @rem Create version.h.
 @echo>version.h.new #define NSSM_VERSION _T("%description%")