diff options
author | Henry Castro <hcastro@collabora.com> | 2018-04-12 15:43:19 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2018-04-12 15:46:40 -0400 |
commit | c254cc333b338b71bfd720baa19e313b97a43c7b (patch) | |
tree | 9e993ac030e66dc10efdcb1c18f6c80a6abf9e7d /autogen.sh | |
parent | Update documentation for invalidatecursor callback (diff) | |
download | online-c254cc333b338b71bfd720baa19e313b97a43c7b.tar.gz online-c254cc333b338b71bfd720baa19e313b97a43c7b.zip |
execute autogen.sh from a build directory
Change-Id: Ibd394549366d0059fe27696343870645e1e11947
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index bf5655b988..1ce95d8404 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" |