Commit c71676d7 authored by Emmanuele Bassi's avatar Emmanuele Bassi
Browse files

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.
parent a7cc2512
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment