Permalink
Browse files

Added section in INSTALL on creating relocatable binary on windows.

  • Loading branch information...
1 parent ddd3e06 commit b307b647ffec1f3052ad07451acc0a5c856cf86d John MacFarlane committed Feb 10, 2012
Showing with 31 additions and 0 deletions.
  1. +31 −0 INSTALL
View
31 INSTALL
@@ -94,6 +94,37 @@ you will need [zip-archive], [blaze-html], and [highlighting-kate].
generate a script that can be run to register the package at
install time.
+Creating a relocatable Windows binary
+-------------------------------------
+
+On Windows it is possible to compile pandoc such that it
+(and its data files) are "relocatable." You can put the relocatable
+binary in any directory (even on a USB drive), and it will look for its
+data files there.
+
+ cabal install --flags="embed_data_files" citeproc-hs
+ cabal install --flags="executable -library" --datasubdir=
+
+You can find `pandoc.exe` in `dist/build/pandoc`. Copy this wherever
+you please, and copy the following data files to the same place:
+
+ README
+ COPYRIGHT
+ COPYING
+ reference.odt
+ reference.docx
+ epub.css
+ default.csl
+ templates/
+ data/
+ s5/
+ slidy/
+ dzslides/
+ pcre-license.txt
+ pcre3.dll
+
+This is essentially what the binary installer does.
+
[zip-archive]: http://hackage.haskell.org/package/zip-archive
[highlighting-kate]: http://hackage.haskell.org/package/highlighting-kate
[blaze-html]: http://hackage.haskell.org/package/blaze-html

0 comments on commit b307b64

Please sign in to comment.