diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-06-07 17:18:39 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-06-07 17:24:21 +0100 |
commit | 8f2231aa2466963b43e228fc4b6066dd519da4d0 (patch) | |
tree | 36004da3f4b27df058cda46bc8d8533e5d30af59 /cfg.mk | |
parent | 3150ec900c4b8f84978ca4fb80eb109ae0df875c (diff) | |
download | coreutils-8f2231aa2466963b43e228fc4b6066dd519da4d0.tar.gz |
maint: sync .gitignore items with gnulib entries
* .gitignore: Add entries for potentially generated headers.
Also remove a couple of items already present in lib/.gitignore.
* cfg.mk (sc_gitignore_missing): A new syntax check rule to
identify missing .gitignore entries.
(sc_gitignore_redundant): A new syntax check rule to
identify redundant .gitignore entries.
Reported by Tomas Nordin.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -648,6 +648,21 @@ sc_fs-magic-compare: && { echo '$(ME): Constants in src/stat.c should be 4 or 8' \ 'upper-case chars' 1>&2; exit 1; } || : +# Ensure gnulib generated files are ignored +# TODO: Perhaps augment gnulib-tool to do this in lib/.gitignore? +sc_gitignore_missing: + @{ sed -n '/^\/lib\/.*\.h$$/{p;p}' .gitignore; \ + find lib -name '*.in*' ! -name '*~' ! -name 'sys_*' | \ + sed 's|^|/|; s|_\(.*in\.h\)|/\1|; s/\.in//'; } | \ + sort | uniq -u | grep . && { echo '$(ME): Add above' \ + 'entries to .gitignore' >&2; exit 1; } || : + +# Flag redundant entreis in .gitignore +sc_gitignore_redundant: + @{ grep ^/lib .gitignore; sed 's|^|/lib|' lib/.gitignore; } | \ + sort | uniq -d | grep . && { echo '$(ME): Remove above' \ + 'entries from .gitignore' >&2; exit 1; } || : + # Override the default Cc: used in generating an announcement. announcement_Cc_ = $(translation_project_), \ coreutils@gnu.org, coreutils-announce@gnu.org |