From: Bruno Haible Date: Thu, 25 Dec 2008 15:07:35 +0000 (+0100) Subject: Fix a gnulib-tool failure. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51978f0b61d66d889b7d4db50d89d63c1ee79a79;p=pspp Fix a gnulib-tool failure. --- 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