@@ -62,15 +62,8 @@ you will need [zip-archive], [blaze-html], and [highlighting-kate].
6262 preceded by a `-` (to force the flag to `false`), and separated
6363 by spaces. Pandoc's flags include:
6464
65− - `executable`: build the pandoc executable (default yes)
66− - `library`: build the pandoc library (default yes)
67−
68− So, for example,
69−
70− --flags="-executable"
71−
72− tells Cabal to build the library but not the executables,
73− and to compile with syntax highlighting support.
65+ - `blaze_html_0_5`: Use blaze-html >= 0.5 (default yes)
66+ - `embed_data_files`: embed all data files into the binary (default no)
7467
75683. Build:
7669
@@ -94,37 +87,19 @@ you will need [zip-archive], [blaze-html], and [highlighting-kate].
9487 generate a script that can be run to register the package at
9588 install time.
9689
97−Creating a relocatable Windows binary
98−-------------------------------------
90+Creating a relocatable binary
91+-----------------------------
9992
100−On Windows it is possible to compile pandoc such that it
101−(and its data files) are "relocatable." You can put the relocatable
102−binary in any directory (even on a USB drive), and it will look for its
103−data files there.
93+It is possible to compile pandoc such that the data files
94+pandoc uses are embedded in the binary. The resulting binary
95+can be run from any directory and is completely self-contained.
10496
10597 cabal install --flags="embed_data_files" citeproc-hs
106− cabal install --flags="executable -library" --datasubdir=
107−
108−You can find `pandoc.exe` in `dist/build/pandoc`. Copy this wherever
109−you please, and copy the following data files to the same place:
110−
111− README
112− COPYRIGHT
113− COPYING
114− reference.odt
115− reference.docx
116− epub.css
117− default.csl
118− templates/
119− data/
120− s5/
121− slidy/
122− slideous/
123− dzslides/
124− pcre-license.txt
125− pcre3.dll
126−
127−This is essentially what the binary installer does.
98+ cabal configure --flags="embed_data_files"
99+ cabal build
100+
101+You can find the pandoc executable in `dist/build/pandoc`. Copy this wherever
102+you please.
128103
129104[zip-archive]: http://hackage.haskell.org/package/zip-archive
130105[highlighting-kate]: http://hackage.haskell.org/package/highlighting-kate