automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH] [ng] tests: fix unportable find(1) usage


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH] [ng] tests: fix unportable find(1) usage
Date: Sat, 9 Jun 2012 13:13:49 +0200

* t/subobj10.sh: The use of find(1) without an explicitly given
file or directory argument (as in "find -name '*.o'" instead of
"find . '-name.o'") is mostly a GNU extension, and not portable
to POSIX find.  Fix it.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 t/subobj10.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/subobj10.sh b/t/subobj10.sh
index ead6b6f..e1d911a 100755
--- a/t/subobj10.sh
+++ b/t/subobj10.sh
@@ -36,7 +36,7 @@ libbar_a_CCASFLAGS =
 .PHONY: test-objs
 check-local: test-objs
 test-objs:
-       find -name '*.$(OBJEXT)' > o.lst && cat o.lst
+       find . -name '*.$(OBJEXT)' > o.lst && cat o.lst
        test -f src/a.$(OBJEXT)
        test -f b.$(OBJEXT)
        test -f src/libbar_a-c.$(OBJEXT)
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]