2010-01-17 00:37:44 +00:00
|
|
|
@echo off
|
2015-11-14 22:23:47 -08:00
|
|
|
stack install --test
|
2013-01-22 19:43:32 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2015-11-14 22:23:47 -08:00
|
|
|
for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a
|
2016-07-22 15:55:35 -07:00
|
|
|
%BINPATH%\pandoc.exe -s -S --toc ..\MANUAL.txt -o MANUAL.html
|
2015-11-13 19:04:34 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2016-10-09 22:39:56 -07:00
|
|
|
%BINPATH%\pandoc.exe -s ..\COPYING.md -t rtf -S -o COPYING.rtf
|
2013-01-22 19:43:32 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2015-11-14 22:23:47 -08:00
|
|
|
copy ..\COPYRIGHT COPYRIGHT.txt
|
|
|
|
for /f "tokens=1-2 delims= " %%a in ('%BINPATH%\pandoc.exe --version') do (
|
2013-02-10 16:25:58 -08:00
|
|
|
@set VERSION=%%b
|
|
|
|
goto :next
|
|
|
|
)
|
|
|
|
:next
|
|
|
|
if "%VERSION%" == "" (
|
|
|
|
echo Error: could not determine version number.
|
2016-07-20 14:12:57 +02:00
|
|
|
exit /b 1
|
2013-02-10 16:25:58 -08:00
|
|
|
)
|
|
|
|
echo Detected version %VERSION%
|
2013-02-09 23:01:21 -08:00
|
|
|
echo Creating msi...
|
2016-06-04 11:34:41 -07:00
|
|
|
candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
|
2013-02-09 23:01:21 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2016-06-04 11:34:41 -07:00
|
|
|
light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-windows.msi wixobj\*.wixobj
|
2013-02-09 23:01:21 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2013-02-10 16:25:58 -08:00
|
|
|
echo Starting kSign: sign, then quit kSign to complete the build...
|
2013-07-04 10:37:20 -07:00
|
|
|
kSign
|
2015-10-16 09:36:38 -07:00
|
|
|
|
|
|
|
echo Copying to shared drive
|
|
|
|
copy pandoc-%VERSION%-windows.msi \\VBOXSVR\WindowsShared\
|