diff options
author | Stef Walter <stefw@gnome.org> | 2014-01-29 18:21:45 +0900 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2014-01-29 18:21:45 +0900 |
commit | c59a6b577b7ba1990a7dc04a894c3bc4f4671471 (patch) | |
tree | f4ed21522d9cd3d0b19970238822579c2581e9e3 | |
parent | 73aab81e55a2c2d0161484de756317ad32c80ddc (diff) |
Support running autogen.sh from srcdir != builddir
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -2,6 +2,10 @@ set -e +oldpwd=$(pwd) +topdir=$(dirname $0) +cd $topdir + # Some boiler plate to get git setup as expected if test -d .git; then if test -f .git/hooks/pre-commit.sample && \ @@ -27,7 +31,7 @@ test -f configure.ac~ && mv configure.ac~ configure.ac autoreconf --force --install --verbose if test x"$NOCONFIGURE" = x; then - cd build/ - exec ../configure "$@" + cd $oldpwd + exec $topdir/configure "$@" fi |