OpenLiveWriter/getversion.cmd

9 lines
306 B
Batchfile
Raw Normal View History

2015-12-09 10:38:46 +00:00
@ECHO OFF
SET /P version=<"%~dp0version.txt"
FOR /F "tokens=1-4 delims=." %%V in ("%version%") DO (
::NuGet now normalizes versions, so need to remove build number if 0
IF %%Y EQU 0 (SET "dottedVersion=%%V.%%W.%%X") ELSE (SET "dottedVersion=%%V.%%W.%%X.%%Y")
2015-12-09 10:38:46 +00:00
SET "rcVersion=%%V,%%W,%%X,%%Y"
)