2010-01-17 00:37:44 +00:00
|
|
|
@echo off
|
|
|
|
cd ..
|
2013-01-22 19:43:32 -08:00
|
|
|
rem cabal update
|
2012-10-15 21:26:24 -07:00
|
|
|
cabal-dev clean
|
2013-01-20 19:36:44 -08:00
|
|
|
cabal-dev install --reinstall --force-reinstall --flags="embed_data_files" citeproc-hs
|
2013-01-22 19:43:32 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2013-01-22 08:16:40 -08:00
|
|
|
cabal-dev install --reinstall --force-reinstall --flags="embed_data_files"
|
2013-01-22 19:43:32 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2011-10-24 00:05:08 -07:00
|
|
|
strip cabal-dev\bin\pandoc.exe
|
2012-12-29 18:51:41 -08:00
|
|
|
cabal-dev\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
|
2013-01-22 19:43:32 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2013-02-09 23:19:55 -08:00
|
|
|
cabal-dev\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
|
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2010-01-17 00:37:44 +00:00
|
|
|
copy COPYRIGHT COPYRIGHT.txt
|
2013-02-10 16:25:58 -08:00
|
|
|
for /f "tokens=1-2 delims= " %%a in ('cabal-dev\bin\pandoc --version') do (
|
|
|
|
@set VERSION=%%b
|
|
|
|
goto :next
|
|
|
|
)
|
|
|
|
:next
|
|
|
|
if "%VERSION%" == "" (
|
|
|
|
echo Error: could not determine version number.
|
|
|
|
exit /b 1
|
|
|
|
)
|
|
|
|
echo Detected version %VERSION%
|
2010-01-17 00:37:44 +00:00
|
|
|
cd windows
|
2013-02-09 23:01:21 -08:00
|
|
|
echo Creating msi...
|
2013-07-04 10:37:20 -07:00
|
|
|
candle -dVERSION=%VERSION% pandoc.wxs
|
2013-02-09 23:01:21 -08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2013-07-04 10:37:20 -07:00
|
|
|
light -sw1076 -ext WixUIExtension -out pandoc-%VERSION%.msi pandoc.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
|