From b2e2a895d7c84241e7657a92a2d58ed05dd745c1 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Mon, 6 Jan 2014 18:17:07 +0000 Subject: [PATCH] Fixed year marker in build information. The year wasn't being set reliably by version.cmd. --- version.cmd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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%") -- 2.20.1