autogen.sh: Change to source directory first

Change to the source tree's top directory before doing anything else.
This commit is contained in:
Hans Ulrich Niedermann 2008-01-09 16:25:48 +01:00 committed by Julien Danjou
parent 9e943442d9
commit b55774c0e0
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/sh
# Change to source tree
srcdir=`dirname "$0"`
[ -z "$srcdir" ] || cd "$srcdir"
echo "Generating configure files... may take a while."
autoreconf --install --force && \