2010-01-17 01:37:44 +01:00
|
|
|
@echo off
|
2015-11-15 07:23:47 +01:00
|
|
|
stack install --test
|
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
|
|
|
|
strip %BINPATH%\pandoc.exe
|
|
|
|
strip %BINPATH%\pandoc-citeproc.exe
|
|
|
|
%BINPATH%\pandoc.exe -s -S ..\README -o README.html
|
2015-11-14 04:04:34 +01:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2015-11-15 07:23:47 +01:00
|
|
|
%BINPATH%\pandoc.exe -s ..\COPYING -t rtf -S -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.
|
|
|
|
exit /b 1
|
|
|
|
)
|
|
|
|
echo Detected version %VERSION%
|
2013-02-10 08:01:21 +01:00
|
|
|
echo Creating msi...
|
2015-11-15 07:23:47 +01:00
|
|
|
candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% pandoc.wxs
|
2013-02-10 08:01:21 +01:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2015-06-03 00:16:38 +02:00
|
|
|
light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.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\
|