Show More
@@ -27,6 +27,9 b' It has the following prerequisites, at l' | |||
|
27 | 27 | add_path (you need only add_path.exe in the zip file) |
|
28 | 28 | http://www.barisione.org/apps.html#add_path |
|
29 | 29 | |
|
30 | Asciidoc - optional | |
|
31 | http://www.methods.co.nz/asciidoc/ | |
|
32 | ||
|
30 | 33 | And, of course, Mercurial itself. |
|
31 | 34 | |
|
32 | 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 | 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 | 65 | If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss |
|
55 | 66 | file and type Ctrl-F9 to compile the installer file. |
|
56 | 67 | |
@@ -66,6 +77,9 b' following:' | |||
|
66 | 77 | echo [build] > setup.cfg |
|
67 | 78 | echo compiler=mingw32 >> setup.cfg |
|
68 | 79 | python setup.py py2exe -b 1 |
|
80 | cd doc | |
|
81 | mingw32-make ASCIIDOC=asciidoc.bat html | |
|
82 | cd .. | |
|
69 | 83 | iscc contrib\win32\mercurial.iss |
|
70 | 84 | |
|
71 | 85 | and run it from the root of the hg repository (c:\hg\hg-release). |
@@ -5,6 +5,7 b' PREFIX=/usr/local' | |||
|
5 | 5 | MANDIR=$(PREFIX)/share/man |
|
6 | 6 | INSTALL=install -c |
|
7 | 7 | PYTHON=python |
|
8 | ASCIIDOC=asciidoc | |
|
8 | 9 | |
|
9 | 10 | all: man html |
|
10 | 11 | |
@@ -24,10 +25,10 b' hg.1.gendoc.txt: ../mercurial/commands.p' | |||
|
24 | 25 | mv $*~ $* |
|
25 | 26 | |
|
26 | 27 | %.xml: %.txt |
|
27 |
|
|
|
28 | $(ASCIIDOC) -d manpage -b docbook $*.txt | |
|
28 | 29 | |
|
29 | 30 | %.html: %.txt |
|
30 |
|
|
|
31 | $(ASCIIDOC) -b html4 $*.txt || $(ASCIIDOC) -b html $*.txt | |
|
31 | 32 | |
|
32 | 33 | MANIFEST: man html |
|
33 | 34 | # tracked files are already in the main MANIFEST |
General Comments 0
You need to be logged in to leave comments.
Login now