[m4-common] Ignore aliases
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [m4-common] Ignore aliases
- Date: Sat, 20 Apr 2019 20:54:05 +0000 (UTC)
commit c71676d7013443402a1fa6db7c2ded6ce130a5b0
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Apr 20 21:52:09 2019 +0100
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 '\<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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]