From c71676d7013443402a1fa6db7c2ded6ce130a5b0 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 20 Apr 2019 21:52:09 +0100 Subject: 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. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '\' | sort | uniq > used + cat $^ | grep -v '^#' | grep -v 'AX_PACKAGE_REQUIRES' | grep -v 'AU_ALIAS' | m4 | grep -o '\' | sort | uniq > used cat $^ | grep ^AC_DEFUN | grep -o '\' | sort | uniq > defined diff -u used defined rm -f used defined -- cgit v1.2.1