execute autogen.sh from a build directory

Change-Id: Ibd394549366d0059fe27696343870645e1e11947
private/kendy/monitoring-rebased
Henry Castro 2018-04-12 15:43:19 -04:00
parent 5da818c033
commit c254cc333b
1 changed files with 9 additions and 1 deletions

View File

@ -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"