appveyor.yml: Tried another approach to get pandoc version.

This commit is contained in:
John MacFarlane 2015-09-27 16:26:13 -07:00
parent f7e02b16d4
commit 80fc5bcdf0

View file

@ -28,10 +28,7 @@ after_build:
.\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
.\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
copy COPYRIGHT COPYRIGHT.txt
for /f "tokens=1-2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do (
@set VERSION=%%b
goto :next
)
for /f "tokens=2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do set "VERSION=%%a"
:next
if "%VERSION%" == "" (
echo Error: could not determine version number.