From: Iain Patterson Date: Mon, 6 Jan 2014 18:17:07 +0000 (+0000) Subject: Fixed year marker in build information. X-Git-Tag: v2.22~78 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=b2e2a895d7c84241e7657a92a2d58ed05dd745c1;p=nssm.git Fixed year marker in build information. The year wasn't being set reliably by version.cmd. --- diff --git a/version.cmd b/version.cmd index 1340d5b..0e21635 100644 --- a/version.cmd +++ b/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%")