Make sure that a failure to build configure.sh or config.h.in
authorWayne Davison <wayned@samba.org>
Wed, 21 Nov 2007 01:22:47 +0000 (17:22 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 21 Nov 2007 01:22:47 +0000 (17:22 -0800)
doesn't leave a file lying around that could deceive us on the
next run.

configure

index a8d3480..811a9d2 100755 (executable)
--- 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