X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=gnulib-tool;h=bc3effb45cfd3e6ee4220175d915a277efe179df;hb=431a5654fefdc324c0f352e8263dcca9cb8ec850;hp=2e7b73dd974f2f2c2213c63cf770dbfa9afc371f;hpb=2e16c967f50faa6ac6d28795cecb6722cb30dfdb;p=gnulib.git diff --git a/gnulib-tool b/gnulib-tool index 2e7b73dd9..bc3effb45 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -3822,7 +3822,14 @@ func_create_testdir () for module in $modules; do func_verify_module if test -n "$module"; then - func_get_autoconf_early_snippet "$module" + case $module in + gnumakefile | maintainer-makefile) + # These modules are meant to be used only in the top-level directory. + ;; + *) + func_get_autoconf_early_snippet "$module" + ;; + esac fi done \ | sed -e '/^$/d;' -e 's/AC_REQUIRE(\[\([^()]*\)\])/\1/' @@ -3857,8 +3864,15 @@ func_create_testdir () for module in $modules; do func_verify_nontests_module if test -n "$module"; then - func_get_autoconf_snippet "$module" \ - | sed -e "$sed_replace_build_aux" + case $module in + gnumakefile | maintainer-makefile) + # These modules are meant to be used only in the top-level directory. + ;; + *) + func_get_autoconf_snippet "$module" \ + | sed -e "$sed_replace_build_aux" + ;; + esac fi done echo "gl_source_base='.'" @@ -4018,7 +4032,9 @@ func_create_testdir () if test -f $m4base/gettext.m4; then func_execute_command ${AUTOPOINT} --force || func_exit 1 for f in $m4base/*.m4~; do - mv -f $f `echo $f | sed -e 's,~$,,'` || func_exit 1 + if test -f $f; then + mv -f $f `echo $f | sed -e 's,~$,,'` || func_exit 1 + fi done fi func_execute_command ${ACLOCAL} -I $m4base || func_exit 1 @@ -4037,7 +4053,9 @@ func_create_testdir () if test -f ../$m4base/gettext.m4; then func_execute_command ${AUTOPOINT} --force || func_exit 1 for f in ../$m4base/*.m4~; do - mv -f $f `echo $f | sed -e 's,~$,,'` || func_exit 1 + if test -f $f; then + mv -f $f `echo $f | sed -e 's,~$,,'` || func_exit 1 + fi done fi func_execute_command ${ACLOCAL} -I ../$m4base || func_exit 1