diff options
author | Pádraig Brady <P@draigBrady.com> | 2014-05-22 02:16:14 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-05-22 11:16:07 +0100 |
commit | 695a0b5502a623e5a9a6d149500c4898102d2dd8 (patch) | |
tree | a265ebb4feba3eec9dd7853d68cf95d1e20804f5 /cfg.mk | |
parent | 1ab31d1ec1635ae0764604a8bf61e11851a63a45 (diff) | |
download | coreutils-695a0b5502a623e5a9a6d149500c4898102d2dd8.tar.xz |
maint: enforce consistent width and case of file system constants
* src/stat.c (human_fstype): Adjust a couple of existing constants
to be a consistent width and capitalization so that the
src/fs-magic-compare target works without reporting false positives.
* cfg.mk (sc_fs-magic-compare): A new syntax check to enforce this.
Improved by: Jim Meyering
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -577,6 +577,14 @@ sc_marked_devdiagnostics: halt='found marked developer diagnostic(s)' \ $(_sc_search_regexp) +# Ensure we keep hex constants as 4 or 8 bytes for consistency +# and so that make src/fs-magic-compare works consistently +sc_fs-magic-compare: + @sed -n 's|.*/\* \(0x[0-9A-Fa-f]\{1,\}\) .*\*/|\1|p' \ + $(srcdir)/src/stat.c | grep -Ev '^0x([0-9A-F]{4}){1,2}$$' \ + && { echo '$(ME): Constants in src/stat.c should be 4 or 8' \ + 'upper-case chars' 1>&2; exit 1; } || : + # Override the default Cc: used in generating an announcement. announcement_Cc_ = $(translation_project_), \ coreutils@gnu.org, coreutils-announce@gnu.org |