X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=build-aux%2Fcompile;h=c0096a7b563231c0c7ade728962574ec3b8df270;hb=c7362ef0beb434d7a3063b5a7ac7b956988dc435;hp=ec64c6220266fb75d8c6b6e0e32492f5983f3472;hpb=cb75dc5b80c196fd934fd852bd3d39f1df1684dd;p=gnulib.git diff --git a/build-aux/compile b/build-aux/compile index ec64c6220..c0096a7b5 100755 --- a/build-aux/compile +++ b/build-aux/compile @@ -1,7 +1,7 @@ #! /bin/sh # Wrapper for compilers which do not understand `-c -o'. -scriptversion=2009-04-28.21; # UTC +scriptversion=2009-10-06.20; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software # Foundation, Inc. @@ -124,9 +124,9 @@ trap "rmdir '$lockdir'; exit 1" 1 2 15 ret=$? if test -f "$cofile"; then - mv "$cofile" "$ofile" + test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then - mv "${cofile}bj" "$ofile" + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir"