tests: fix check-AUTHORS skip logic

* src/Makefile.am (check-AUTHORS): When this test is skipped, be
sure to avoid all commands in the recipe, not just those passed
to the first shell.
This commit is contained in:
Ralf Wildenhues authored and Jim Meyering committed 2009-04-25 08:35:53 +02:00
1 parent c86509d86e
commit 6debf54e61
1 file changed
+3 -3
+3 -3
View File
@@ -411,9 +411,9 @@ check-AUTHORS: $(all_programs)
| perl -0 -pi -e 's/,\n/, /gm' \
| sed -n -e '/Written by /{ s//'"$$i"': /;' \
-e 's/,* and /, /; s/\.$$//; p; }'; \
done > $(au_actual)
@sed -n '/^[^ ][^ ]*:/p' $(top_srcdir)/AUTHORS > $(au_dotdot)
@diff $(au_actual) $(au_dotdot) && rm -f $(au_actual) $(au_dotdot)
done > $(au_actual) && \
sed -n '/^[^ ][^ ]*:/p' $(top_srcdir)/AUTHORS > $(au_dotdot) && \
diff $(au_actual) $(au_dotdot) && rm -f $(au_actual) $(au_dotdot)
# The following rule is not designed to be portable,
# and relies on tools that not everyone has.