# HG changeset patch # User Bruno Haible # Date 1230217655 -3600 # Node ID 4c304a656b8773dfcbc7cd6d11040e0d7a5d0547 # Parent 2692e4e280416f42f25213d12eb7012e4900b3bb Fix a gnulib-tool failure. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-12-25 Bruno Haible + + * gnulib-tool (func_create_testdir): Avoid failure of mv command. + 2008-12-25 Bruno Haible * modules/btowc (License): Relicense under LGPLv2+. diff --git a/gnulib-tool b/gnulib-tool --- a/gnulib-tool +++ b/gnulib-tool @@ -4032,7 +4032,9 @@ 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 @@ -4051,7 +4053,9 @@ 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