From: Wayne Davison Date: Wed, 21 Nov 2007 01:22:47 +0000 (-0800) Subject: Make sure that a failure to build configure.sh or config.h.in X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dc2815c1fb40ff8f40eee6e1eaf57deb7fbf1d3d Make sure that a failure to build configure.sh or config.h.in doesn't leave a file lying around that could deceive us on the next run. --- diff --git a/configure b/configure index a8d34802..811a9d2f 100755 --- a/configure +++ b/configure @@ -21,6 +21,7 @@ if [ ! -f "$realconfigure" ]; then rsync -avz rsync://rsync.samba.org/rsyncftp/generated-files/'c*' . else echo 'Failed to build configure.sh and/or config.h.in -- giving up.' >&2 + rm -f "$realconfigure" exit 1 fi if test x"$curdir" != x; then