From 9b19ae569482e9df7a97c86da80320497f43e8e0 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Thu, 28 May 2015 11:20:05 -0700
Subject: [PATCH] Ensure that docx and odt are built in windows installer.

Closes #2187.
---
 windows/make-windows-installer.bat | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/windows/make-windows-installer.bat b/windows/make-windows-installer.bat
index d4816fa69..5e574c9db 100644
--- a/windows/make-windows-installer.bat
+++ b/windows/make-windows-installer.bat
@@ -5,6 +5,9 @@ cabal sandbox init
 cabal clean
 cabal install hsb2hs
 if %errorlevel% neq 0 exit /b %errorlevel%
+REM We do it once to regenrate data/reference.docx/odt
+cabal install -v1 --force --reinstall --flags="embed_data_files"
+REM then again for real, because otherwise it won't work with embed_data_files:
 cabal install -v1 --force --reinstall --flags="embed_data_files" . pandoc-citeproc
 if %errorlevel% neq 0 exit /b %errorlevel%
 strip .\.cabal-sandbox\bin\pandoc.exe