Fixed year marker in build information.
authorIain Patterson <me@iain.cx>
Mon, 6 Jan 2014 18:17:07 +0000 (18:17 +0000)
committerIain Patterson <me@iain.cx>
Mon, 6 Jan 2014 18:17:07 +0000 (18:17 +0000)
The year wasn't being set reliably by version.cmd.

version.cmd

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