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