From 51978f0b61d66d889b7d4db50d89d63c1ee79a79 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 25 Dec 2008 16:07:35 +0100 Subject: [PATCH] Fix a gnulib-tool failure. --- ChangeLog | 4 ++++ gnulib-tool | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c267222c0a..703e62148e 100644 --- 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 index 679d12fe55..bc3effb45c 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -4032,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 @@ -4051,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 -- 2.30.2