build: Switch to olddir after autoreconf

Otherwise this won't work:

  $ mkdir _build && cd _build
  $ ../autogen.sh

As `autoreconf` won't find configure.ac.
tingping/wmclass
Emmanuele Bassi 2015-12-04 01:14:53 +00:00
parent 82fa0659f9
commit 19c9a25be6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,6 @@ fi
# regenerated from their corresponding *.in files by ./configure anyway.
touch INSTALL
cd "$olddir"
if ! test -f libglnx/README.md; then
git submodule update --init
fi
@ -27,4 +26,5 @@ sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am
autoreconf --force --install --verbose || exit $?
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"