Only allow the build farm to rsync the latest generated
authorWayne Davison <wayned@samba.org>
Tue, 20 Nov 2007 16:40:15 +0000 (08:40 -0800)
committerWayne Davison <wayned@samba.org>
Tue, 20 Nov 2007 16:40:15 +0000 (08:40 -0800)
configure files when building them fails.

configure

index 0e6139320ee9fb49a805af649c7c7843ad315cec..a8d348024285587131b16a9851b9a1b5cd2eba49 100755 (executable)
--- a/configure
+++ b/configure
@@ -16,8 +16,12 @@ if [ ! -f "$realconfigure" ]; then
     make -f prepare-source.mak proto.h
     if make -f prepare-source.mak conf; then
        :
-    else
+    elif [ -f "$HOME/build_farm/build_test.fns" ]; then
+       # Allow the build farm to grab latest files via rsync.
        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
+       exit 1
     fi
     if test x"$curdir" != x; then
        cd "$curdir"