From 6bff9bfedd4dde176b2aa824de665b28b0af9a8d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 4 Sep 2010 17:47:30 +0200 Subject: [PATCH] gnulib-tool: Fix expression that counts directories. --- ChangeLog | 2 +- gnulib-tool | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6616cbb7e..47e82e467 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,7 +11,7 @@ gnulib-tool: Avoid error when run in a package without Makefile.am. * gnulib-tool: When collecting the m4dirs in a package that does not have a Makefile.am, eliminate those directories that contain no - gnulib-cache.m4. + gnulib-cache.m4. Fix expression that counts these directories. 2010-09-04 Bruno Haible diff --git a/gnulib-tool b/gnulib-tool index d419df12d..0352078fd 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -5519,7 +5519,7 @@ s/\([.*$]\)/[\1]/g' sedexpr3='s,/[^/]*$,,' m4dirs=`sed -n -e "$sedexpr1" aclocal.m4 | sed -e "$sedexpr2" -e "$sedexpr3" | LC_ALL=C sort -u` m4dirs=`for arg in $m4dirs; do if test -f "$destdir/$arg"/gnulib-cache.m4; then echo $arg; fi; done` - m4dirs_count=`printf %s "$m4dirs" | wc -l` + m4dirs_count=`for arg in $m4dirs; do echo "$arg"; done | wc -l` fi fi if test $m4dirs_count = 0; then -- 2.11.0