mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(check-programs-vs-x):
Work even if $(programs) contains '$'. Work even if 'missing=1' in environment. Don't report an error simply because $(programs) outputs nothing.
This commit is contained in:
1 parent
9e4ee6ce82
commit
9bc557bf88
1 file changed
+5
-4
+5
-4
@@ -160,10 +160,11 @@ programs = \
|
||||
|
||||
.PHONY: check-programs-vs-x
|
||||
check-programs-vs-x:
|
||||
test "$(programs)" && : || exit 1
|
||||
for p in `$(programs)`; do \
|
||||
status=0; \
|
||||
for p in dummy `$(programs)`; do \
|
||||
test $$p = dummy && continue; \
|
||||
test $$p = ginstall && p=install || : ; \
|
||||
test -f $(srcdir)/$$p.x \
|
||||
|| { echo missing $$p.x 1>&2; missing=1; }; \
|
||||
|| { echo missing $$p.x 1>&2; status=1; }; \
|
||||
done; \
|
||||
test "$$missing" = 1 && exit 1 || :
|
||||
exit $$status
|
||||
Reference in new issue
Block a user