[libvirt] [PATCHv3 3/3] autobuild.sh: use VPATH build

Eric Blake eblake at redhat.com
Fri Feb 18 22:24:57 UTC 2011


Try to avoid future regressions on the VPATH front.

* autobuild.sh: Uncomment VPATH use.
* .gitignore: Exclude build directory.
---

v2, not that much changed since:
https://www.redhat.com/archives/libvir-list/2010-April/msg01422.html

but now that all the intermediate VPATH issues that had stumped me
for so long have been resolved, it finally works!

 .gitignore   |    1 +
 autobuild.sh |   10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 309becf..41f7654 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@
 /autom4te.cache
 /build-aux
 /build-aux/
+/build/
 /config.cache
 /config.guess
 /config.h
diff --git a/autobuild.sh b/autobuild.sh
index 91e2ab2..54fb273 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -11,11 +11,11 @@ test -n "$1" && RESULTS=$1 || RESULTS=results.log
 test -f Makefile && make -k distclean || :
 rm -rf coverage

-#rm -rf build
-#mkdir build
-#cd build
+rm -rf build
+mkdir build
+cd build

-./autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \
+../autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \
   --enable-test-coverage \
   --enable-compile-warnings=error

@@ -66,7 +66,7 @@ if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then

   PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig" \
   CC="i686-pc-mingw32-gcc" \
-  ./configure \
+  ../configure \
     --build=$(uname -m)-pc-linux \
     --host=i686-pc-mingw32 \
     --prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
-- 
1.7.4




More information about the libvir-list mailing list