##// END OF EJS Templates
Document how HTML documentation is built under Windows
Patrick Mezard -
r7660:ceed5f8c default
parent child Browse files
Show More
@@ -27,6 +27,9 b' It has the following prerequisites, at l'
27 add_path (you need only add_path.exe in the zip file)
27 add_path (you need only add_path.exe in the zip file)
28 http://www.barisione.org/apps.html#add_path
28 http://www.barisione.org/apps.html#add_path
29
29
30 Asciidoc - optional
31 http://www.methods.co.nz/asciidoc/
32
30 And, of course, Mercurial itself.
33 And, of course, Mercurial itself.
31
34
32 Once you have all this installed and built, clone a copy of the
35 Once you have all this installed and built, clone a copy of the
@@ -51,6 +54,14 b' you can skip the first build step.'
51
54
52 Copy mfc71.dll and add_path.exe into the dist directory that just got created.
55 Copy mfc71.dll and add_path.exe into the dist directory that just got created.
53
56
57 Before building the installer, you have to build Mercurial HTML documentation
58 (or fix mercurial.iss to not reference the doc directory). Assuming you have an
59 "asciidoc.bat" batch file somewhere in your PATH:
60
61 cd doc
62 mingw32-make ASCIIDOC=asciidoc.bat html
63 cd ..
64
54 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss
65 If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss
55 file and type Ctrl-F9 to compile the installer file.
66 file and type Ctrl-F9 to compile the installer file.
56
67
@@ -66,6 +77,9 b' following:'
66 echo [build] > setup.cfg
77 echo [build] > setup.cfg
67 echo compiler=mingw32 >> setup.cfg
78 echo compiler=mingw32 >> setup.cfg
68 python setup.py py2exe -b 1
79 python setup.py py2exe -b 1
80 cd doc
81 mingw32-make ASCIIDOC=asciidoc.bat html
82 cd ..
69 iscc contrib\win32\mercurial.iss
83 iscc contrib\win32\mercurial.iss
70
84
71 and run it from the root of the hg repository (c:\hg\hg-release).
85 and run it from the root of the hg repository (c:\hg\hg-release).
@@ -5,6 +5,7 b' PREFIX=/usr/local'
5 MANDIR=$(PREFIX)/share/man
5 MANDIR=$(PREFIX)/share/man
6 INSTALL=install -c
6 INSTALL=install -c
7 PYTHON=python
7 PYTHON=python
8 ASCIIDOC=asciidoc
8
9
9 all: man html
10 all: man html
10
11
@@ -24,10 +25,10 b' hg.1.gendoc.txt: ../mercurial/commands.p'
24 mv $*~ $*
25 mv $*~ $*
25
26
26 %.xml: %.txt
27 %.xml: %.txt
27 asciidoc -d manpage -b docbook $*.txt
28 $(ASCIIDOC) -d manpage -b docbook $*.txt
28
29
29 %.html: %.txt
30 %.html: %.txt
30 asciidoc -b html4 $*.txt || asciidoc -b html $*.txt
31 $(ASCIIDOC) -b html4 $*.txt || $(ASCIIDOC) -b html $*.txt
31
32
32 MANIFEST: man html
33 MANIFEST: man html
33 # tracked files are already in the main MANIFEST
34 # tracked files are already in the main MANIFEST
General Comments 0
You need to be logged in to leave comments. Login now