Show More
@@ -1,44 +1,46 | |||
|
1 | 1 | SOURCES=$(wildcard *.[0-9].txt) |
|
2 | 2 | MAN=$(SOURCES:%.txt=%) |
|
3 | 3 | HTML=$(SOURCES:%.txt=%.html) |
|
4 | 4 | PREFIX=/usr/local |
|
5 | 5 | MANDIR=$(PREFIX)/share/man |
|
6 | 6 | INSTALL=install -c |
|
7 | 7 | |
|
8 | 8 | all: man html |
|
9 | 9 | |
|
10 | 10 | man: $(MAN) |
|
11 | 11 | |
|
12 | 12 | html: $(HTML) |
|
13 | 13 | |
|
14 | 14 | hg.1.txt: hg.1.gendoc.txt |
|
15 | 15 | touch hg.1.txt |
|
16 | 16 | |
|
17 | 17 | hg.1.gendoc.txt: ../mercurial/commands.py ../mercurial/help.py |
|
18 | 18 | python gendoc.py > $@ |
|
19 | 19 | |
|
20 | 20 | %: %.xml |
|
21 | xmlto man $*.xml | |
|
21 | xmlto man $*.xml ; \ | |
|
22 | sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \ | |
|
23 | mv $*~ $* | |
|
22 | 24 | |
|
23 | 25 | %.xml: %.txt |
|
24 | 26 | asciidoc -d manpage -b docbook $*.txt |
|
25 | 27 | |
|
26 | 28 | %.html: %.txt |
|
27 | 29 | asciidoc -b html4 $*.txt || asciidoc -b html $*.txt |
|
28 | 30 | |
|
29 | 31 | MANIFEST: man html |
|
30 | 32 | # versionned files are already in the main MANIFEST |
|
31 | 33 | $(RM) $@ |
|
32 | 34 | for i in $(MAN) $(HTML) hg.1.gendoc.txt; do \ |
|
33 | 35 | echo "doc/$$i" >> $@ ; \ |
|
34 | 36 | done |
|
35 | 37 | |
|
36 | 38 | install: man |
|
37 | 39 | for i in $(MAN) ; do \ |
|
38 | 40 | subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \ |
|
39 | 41 | mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \ |
|
40 | 42 | $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \ |
|
41 | 43 | done |
|
42 | 44 | |
|
43 | 45 | clean: |
|
44 | 46 | $(RM) $(MAN) $(MAN:%=%.xml) $(MAN:%=%.html) *.[0-9].gendoc.txt MANIFEST |
@@ -1,92 +1,91 | |||
|
1 | 1 | HGIGNORE(5) |
|
2 | 2 | =========== |
|
3 | 3 | Vadim Gelfer <vadim.gelfer@gmail.com> |
|
4 | 4 | |
|
5 | 5 | NAME |
|
6 | 6 | ---- |
|
7 | 7 | hgignore - syntax for Mercurial ignore files |
|
8 | 8 | |
|
9 | 9 | SYNOPSIS |
|
10 | 10 | -------- |
|
11 | 11 | |
|
12 | 12 | The Mercurial system uses a file called .hgignore in the root |
|
13 | 13 | directory of a repository to control its behavior when it finds files |
|
14 | 14 | that it is not currently managing. |
|
15 | 15 | |
|
16 | 16 | DESCRIPTION |
|
17 | 17 | ----------- |
|
18 | 18 | |
|
19 | 19 | Mercurial ignores every unmanaged file that matches any pattern in an |
|
20 | 20 | ignore file. The patterns in an ignore file do not apply to files |
|
21 | 21 | managed by Mercurial. To control Mercurial's handling of files that |
|
22 | 22 | it manages, see the hg(1) man page. Look for the "-I" and "-X" |
|
23 | 23 | options. |
|
24 | 24 | |
|
25 | 25 | In addition, a Mercurial configuration file can point to a set of |
|
26 | 26 | per-user or global ignore files. See the hgrc(5) man page for details |
|
27 | 27 | of how to configure these files. Look for the "ignore" entry in the |
|
28 | 28 | "ui" section. |
|
29 | 29 | |
|
30 | 30 | SYNTAX |
|
31 | 31 | ------ |
|
32 | 32 | |
|
33 | 33 | An ignore file is a plain text file consisting of a list of patterns, |
|
34 | 34 | with one pattern per line. Empty lines are skipped. The "#" |
|
35 | 35 | character is treated as a comment character, and the "\" character is |
|
36 | 36 | treated as an escape character. |
|
37 | 37 | |
|
38 | 38 | Mercurial supports several pattern syntaxes. The default syntax used |
|
39 | 39 | is Python/Perl-style regular expressions. |
|
40 | 40 | |
|
41 | 41 | To change the syntax used, use a line of the following form: |
|
42 | 42 | |
|
43 | 43 | syntax: NAME |
|
44 | 44 | |
|
45 | 45 | where NAME is one of the following: |
|
46 | 46 | |
|
47 | 47 | regexp:: |
|
48 | 48 | Regular expression, Python/Perl syntax. |
|
49 | 49 | glob:: |
|
50 | 50 | Shell-style glob. |
|
51 | 51 | |
|
52 | 52 | The chosen syntax stays in effect when parsing all patterns that |
|
53 | 53 | follow, until another syntax is selected. |
|
54 | 54 | |
|
55 | 55 | Neither glob nor regexp patterns are rooted. A glob-syntax pattern of |
|
56 | 56 | the form "*.c" will match a file ending in ".c" in any directory, and |
|
57 | 57 | a regexp pattern of the form "\.c$" will do the same. To root a |
|
58 | 58 | regexp pattern, start it with "^". |
|
59 | 59 | |
|
60 | 60 | EXAMPLE |
|
61 | 61 | ------- |
|
62 | 62 | |
|
63 | 63 | Here is an example ignore file. |
|
64 | 64 | |
|
65 | 65 | # use glob syntax. |
|
66 | 66 | syntax: glob |
|
67 | 67 | |
|
68 | 68 | *.elc |
|
69 | 69 | *.pyc |
|
70 | 70 | *~ |
|
71 | .*.swp | |
|
72 | 71 | |
|
73 | 72 | # switch to regexp syntax. |
|
74 | 73 | syntax: regexp |
|
75 | 74 | ^\.pc/ |
|
76 | 75 | |
|
77 | 76 | AUTHOR |
|
78 | 77 | ------ |
|
79 | 78 | Vadim Gelfer <vadim.gelfer@gmail.com> |
|
80 | 79 | |
|
81 | 80 | Mercurial was written by Matt Mackall <mpm@selenic.com>. |
|
82 | 81 | |
|
83 | 82 | SEE ALSO |
|
84 | 83 | -------- |
|
85 | 84 | hg(1), hgrc(5) |
|
86 | 85 | |
|
87 | 86 | COPYING |
|
88 | 87 | ------- |
|
89 | 88 | This manual page is copyright 2006 Vadim Gelfer. |
|
90 | 89 | Mercurial is copyright 2005-2007 Matt Mackall. |
|
91 | 90 | Free use of this software is granted under the terms of the GNU General |
|
92 | 91 | Public License (GPL). |
General Comments 0
You need to be logged in to leave comments.
Login now