OSDN Git Service

autogen.sh: run git commands in the (potentially) git dir
authorEric Engestrom <eric.engestrom@imgtec.com>
Fri, 3 Feb 2017 18:21:10 +0000 (18:21 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 28 Feb 2017 13:34:26 +0000 (13:34 +0000)
If the build dir is outside of the git dir, the order matters :)

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
autogen.sh

index d003096..13d6991 100755 (executable)
@@ -6,15 +6,15 @@ test -z "$srcdir" && srcdir=.
 ORIGDIR=`pwd`
 cd "$srcdir"
 
-autoreconf --force --verbose --install || exit 1
-cd "$ORIGDIR" || exit $?
-
 git config --local --get format.subjectPrefix >/dev/null ||
     git config --local format.subjectPrefix "PATCH libdrm" 2>/dev/null
 
 git config --local --get sendemail.to >/dev/null ||
     git config --local sendemail.to "dri-devel@lists.freedesktop.org" 2>/dev/null
 
+autoreconf --force --verbose --install || exit 1
+cd "$ORIGDIR" || exit $?
+
 if test -z "$NOCONFIGURE"; then
     "$srcdir"/configure "$@"
 fi