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