diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-10-20 18:17:46 +0100 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2010-11-14 20:04:45 +0900 |
commit | 90a18af83653894b651c4399965ee0361cc19224 (patch) | |
tree | 9a68cebc9b44238dedb9b39822129a97039805a2 | |
parent | 56fe1c2f1be00377ab0def864aefb2443a096f96 (diff) |
Update autogen.sh to one that does builddir != srcdir
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,12 @@ #! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + autoreconf -v --install || exit 1 -./configure "$@" +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" |