[Libreoffice-commits] online.git: autogen.sh

Henry Castro hcastro at collabora.com
Thu Apr 12 19:47:52 UTC 2018


 autogen.sh |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit c254cc333b338b71bfd720baa19e313b97a43c7b
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Apr 12 15:43:19 2018 -0400

    execute autogen.sh from a build directory
    
    Change-Id: Ibd394549366d0059fe27696343870645e1e11947

diff --git a/autogen.sh b/autogen.sh
index bf5655b98..1ce95d840 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,11 @@
 #! /bin/bash
 
+srcdir=`dirname $0`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd "$srcdir"
+
 function failed {
     cat << EOF 1>&2
 
@@ -22,6 +28,8 @@ autoreconf || failed "autoreconf"
 
 cat << EOF
 
-Result: All went OK, please run ./configure (with the appropriate parameters) now.
+Result: All went OK, please run $srcdir/configure (with the appropriate parameters) now.
 
 EOF
+
+cd "$olddir"


More information about the Libreoffice-commits mailing list