cedric pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d65e0316c3fdb069e71e2a4e2036e79430f4e2ae

commit d65e0316c3fdb069e71e2a4e2036e79430f4e2ae
Author: Srivardhan Hebbar <[email protected]>
Date:   Mon Sep 22 14:43:32 2014 +0200

    autotools: modified autogen.sh script to be able to build from different 
directory.
    
    Summary:
    Right now we cannot have a designated build directory and build in the same 
folder as in the source. So modified the autogen.sh so that we can have a 
designated build directory and can build from that.
    
    @feature
    
    Signed-off-by: Srivardhan Hebbar <[email protected]>
    
    Reviewers: cedric, raster, devilhorns
    
    Subscribers: zmike, cedric
    
    Differential Revision: https://phab.enlightenment.org/D1359
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 autogen.sh | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 3e7444b..69a0b2f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,11 +1,17 @@
 #!/bin/sh
 
-rm -rf autom4te.cache
-rm -f aclocal.m4 ltmain.sh config.cache
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+(
+  cd "$srcdir" &&
+  (
+    rm -rf autom4te.cache
+    rm -f aclocal.m4 ltmain.sh config.cache
 
-autoreconf --symlink --install || exit 1
+    autoreconf --symlink --install || exit 1
+  )
+)
+
+test -n "$NOCONFIGURE" || exec $srcdir/configure -C "$@"
 
-if [ -z "$NOCONFIGURE" ]; then
-  exec ./configure -C "$@"
-fi
 exit 0

-- 


Reply via email to