summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 9df6f5ed7..329569799 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -232,7 +232,7 @@ pm = progs-makefile
pr = progs-readme
# Ensure that the list of programs in README matches the list
# of programs we can build.
-check: check-README check-misc
+check: check-README check-misc check-AUTHORS
.PHONY: check-README
check-README:
rm -rf $(pr) $(pm)
@@ -242,6 +242,28 @@ check-README:
| sed -n '/^ */s///p' | tr -s ' ' '\n' > $(pr)
diff $(pm) $(pr) && rm -rf $(pr) $(pm)
+# Ensure that the list of programs and author names is accurate.
+au_dotdot = authors-dotdot
+au_actual = authors-actual
+.PHONY: check-AUTHORS
+check-AUTHORS: $(all_programs)
+ rm -f $(au_actual) $(au_dotdot)
+ for i in $(all_programs); do \
+ test "$$i" = '[' && continue; \
+ exe=$$i; \
+ if test "$$i" = install; then \
+ exe=ginstall; \
+ elif test "$$i" = test; then \
+ exe='['; \
+ fi; \
+ ./printf "$$i: "; \
+ ./$$exe --version \
+ |sed -n '/Written by /s///p' \
+ |sed 's/,\? and /, /;s/\.$$//'; \
+ done | $(ASSORT) > $(au_actual)
+ sed -n '/:/p' $(top_srcdir)/AUTHORS > $(au_dotdot)
+ diff $(au_actual) $(au_dotdot) && rm -f $(au_actual) $(au_dotdot)
+
# Make sure we don't define any S_IS* macros in src/*.c files.
# Not a big deal, but they're already defined via system.h.
#