diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-20 21:52:09 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-04-20 21:52:09 +0100 |
commit | c71676d7013443402a1fa6db7c2ded6ce130a5b0 (patch) | |
tree | 6a508a2253a85caeef5382ce719471135a209e17 /Makefile.am | |
parent | a7cc25124ed744eeb1d833b35b5770fb0edee199 (diff) | |
download | m4-common-c71676d7013443402a1fa6db7c2ded6ce130a5b0.tar.gz |
Ignore aliases
Aliases for old names should be skipped when checking the names that
have been defined, otherwise we'll always trip a check for a name that
has been defined but not used.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 51259aa..9af3869 100644 --- a/Makefile.am +++ b/Makefile.am @@ -31,7 +31,7 @@ dist_aclocal_DATA = \ # Here, plain m4 is being used to strip 'dnl' comments. all-local: $(dist_aclocal_DATA) - cat $^ | grep -v '^#' | grep -v 'AX_PACKAGE_REQUIRES' | m4 | grep -o '\<AX_[A-Z0-9_]*[A-Z0-9]\>' | sort | uniq > used + cat $^ | grep -v '^#' | grep -v 'AX_PACKAGE_REQUIRES' | grep -v 'AU_ALIAS' | m4 | grep -o '\<AX_[A-Z0-9_]*[A-Z0-9]\>' | sort | uniq > used cat $^ | grep ^AC_DEFUN | grep -o '\<AX_[A-Z0-9_]*\>' | sort | uniq > defined diff -u used defined rm -f used defined |