annotate .hgignore @ 25543:115db34f35fb

.hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216) * .hgignore: Use '(^|/)' idiom to anchor ignored files that may be generated in the source tree or in a build subdirectory depending on the user's preference.
author Mike Miller <mtmiller@octave.org>
date Mon, 02 Jul 2018 12:32:24 -0700
parents a27ae22eb41d
children cbef9fc53fef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
1 syntax: regexp
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
2 ## The recurrent (^|/) idiom in the regexps below should be understood
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
3 ## to mean "at any directory" while the ^ idiom means "from the
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
4 ## project's top-level directory".
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
5
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
6 ## gnulib related files
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
7 # gnulib makes these silly backup files.
15410
2024c70329df .hgignore: Ignore gnulib/gnulib.mk file.
Rik <rik@octave.org>
parents: 15394
diff changeset
8 .~$
20715
5b7643257978 Remove trailing whitespace at end of lines.
Rik <rik@octave.org>
parents: 20386
diff changeset
9 # This directory gets created by gnulib during the build.
15394
2b72343ed9c4 hgignore: Update patterns to reflect directory changes to source tree.
Rik <rik@octave.org>
parents: 15325
diff changeset
10 # It contains no Octave files.
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
11 (^|/)libgnu($|/)
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
12
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
13 ## m4 related files
15765
70bf9b6d47af maint: update .hgignore to reflect new libgnu/ structure
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 15410
diff changeset
14 # This directory mostly contains cruft during build time, but it does
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
15 # contain some Octave code, so be more careful about what we ignore here.
15325
d9b955926a50 maint: update .hgignore
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 15207
diff changeset
16 ^m4/(?!ax_).+\.m4$
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
17
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
18 ## Autoconf, Automake automatically generated files
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
19 ^aclocal\.m4$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
20 ^autom4te\.cache($|/)
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
21 ^config\.in\.h$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
22 ^configure$
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
23 (^|/)config.cache$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
24 (^|/)config.h$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
25 (^|/)config.log$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
26 (^|/)config.status$
7823
feaaf725c54f Ignore build directories.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 0
diff changeset
27
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
28 ^Makefile\.in$
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
29 ^INSTALL$
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
30
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
31 ## Emacs associated files
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
32 (^|/)TAGS$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
33 (^|/)semantic.cache$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
34
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
35 ## Scripts associated with building Octave
24091
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
36 ^build-aux/config\.(guess|rpath|sub)$
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
37 (^|/)build-aux/check-subst-vars\.sh$
24091
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
38 ^build-aux/depcomp$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
39 ^build-aux/install-sh$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
40 ^build-aux/ltmain\.sh$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
41 ^build-aux/mdate-sh$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
42 ^build-aux/missing$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
43 ^build-aux/move-if-change$
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
44 (^|/)build-aux/subst-config-vals\.sh$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
45 (^|/)build-aux/subst-cross-config-vals\.sh$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
46 (^|/)build-aux/subst-default-vals\.sh$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
47 (^|/)build-aux/subst-script-vals\.sh$
24091
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
48 ^build-aux/texinfo\.tex$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
49 ^build-aux/ylwrap$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
50
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
51 ## Mercurial associated files
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
52 (^|/)HG-ID$
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
53
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
54 ## Timestamp files used in build process
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
55 .*/\.dirstamp$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
56 .*/\.octave-dirstamp$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
57
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
58 ## Intermediate compilation results for libraries
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
59 .*\.la$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
60 .*/\.libs/
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
61 .*\.Plo$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
62 .*\.Po$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
63
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
64
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
65 ## DLDFCN associated files
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
66 ^libinterp/dldfcn/module\.mk$
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
67 (^|/)libinterp/dldfcn/PKG_ADD$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
68 (^|/)libinterp/dldfcn/.*\.oct$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
69
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
70 ## liboctave/ directory associated patterns
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
71 # E.g., liboctave/operators/smx-op-inc.mk
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
72 ^liboctave/operators/\w+-op-\w+\.mk$
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
73
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
74 ## scripts/ directory associated patterns
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
75 # Package files
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
76 (^|/)scripts/.*/PKG_ADD$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
77 # Java files
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
78 (^|/)scripts/java/octave\.jar$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
79 (^|/)scripts/java/org/octave/.*\.class$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
80
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
81 ## libgui/ associated patterns
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
82 # Files generated by moc tool
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
83 (^|/)libgui/.*/moc-.*\.(cc|h)$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
84 (^|/)libgui/languages/.*\.qm$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
85
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
86 ## Ignore patterns associated with documentation
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
87 # Info generated files
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
88 # E.g., doc/faq/OctaveFAQ.info, doc/interpreter/octave.info-4
24091
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
89 ^doc/\w+/\w+\.info(-\d+)?$
12473
95b1c64c287f Improve .hgignore adding more things to be ignored
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7823
diff changeset
90
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
91 # Texinfo created temporary directories
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
92 (^|/)doc/(interpreter|liboctave)/(octave|liboctave)\.t2(d|p)/
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
93 # Texinfo created files
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
94 (^|/)doc/interpreter/.*\.texi$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
95
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
96 # DOCSTRINGS files built in the source tree
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
97 (^|/)(libinterp|scripts)/DOCSTRINGS$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
98
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
99 # Generated HTML directories
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
100 (^|/)doc/interpreter/octave\.html/
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
101 (^|/)doc/liboctave/liboctave\.html/
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
102
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
103 # Miscellaneous auto-generated files
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
104 (^|/)doc/interpreter/octave\.dvi$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
105 (^|/)doc/interpreter/octave\.ps$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
106 (^|/)doc/interpreter/doc-cache$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
107 (^|/)doc/interpreter/octave_interpreter\.q(ch|hc)$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
108
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
109 # Images and scripts for documentation
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
110 ^doc/interpreter/images\.mk$
25543
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
111 (^|/)doc/interpreter/.*\.eps$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
112 (^|/)doc/interpreter/.*\.pdf$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
113 (^|/)doc/interpreter/.*\.png$
115db34f35fb .hgignore: fix prefix to ignore files that may be in or out of tree (bug #54216)
Mike Miller <mtmiller@octave.org>
parents: 25538
diff changeset
114 (^|/)doc/interpreter/.*\.txt$
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
115
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
116 # timestamps for doc directory
24091
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
117 ^doc/\w+/stamp-(vti|\d+)$
19d8d99152e9 maint: make .hgignore more precise about auxiliary and intermediate files
Mike Miller <mtmiller@octave.org>
parents: 24078
diff changeset
118 ^doc/\w+/version-\w+\.texi$
21674
5e083d07ba35 maint: add DOCSTRINGS to .hgignore
Mike Miller <mtmiller@octave.org>
parents: 20715
diff changeset
119
25538
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
120 ## Test associated patterns
a27ae22eb41d .hgignore: Add more files to ignore (bug #54216).
Rik <rik@octave.org>
parents: 25537
diff changeset
121 .*-tst$
25537
975450679c15 .hgignore: Add more files to ignore (bug #54216).
Andrew Janke <andrew@apjanke.net>
parents: 24091
diff changeset
122