Mercurial > hg > octave-kai > gnulib-hg
changeset 13632:09362ffa0085
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 04 Sep 2010 17:38:58 +0200 |
parents | 59e05a895ba2 |
children | 016a2b7d7d27 |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-09-04 Bruno Haible <bruno@clisp.org> + + 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. + 2010-09-04 Bruno Haible <bruno@clisp.org> update-copyright test: Improve output when perl is missing or too old.
--- a/gnulib-tool +++ b/gnulib-tool @@ -3313,6 +3313,7 @@ # - modcache true or false, from --cache-modules/--no-cache-modules # - verbose integer, default 0, inc/decremented by --verbose/--quiet # - libname library name +# - supplied_libname true if --lib was given, blank otherwise # - sourcebase directory relative to destdir where to place source code # - m4base directory relative to destdir where to place *.m4 macros # - pobase directory relative to destdir where to place *.po files @@ -5517,6 +5518,7 @@ sedexpr2='s,^[^/]*$,.,' 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` fi fi