From: Eric Engestrom Date: Fri, 3 Feb 2017 18:21:10 +0000 (+0000) Subject: autogen.sh: run git commands in the (potentially) git dir X-Git-Tag: libdrm-2.4.76~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bf96af525436d3727d44d137fe922b491512b14;p=platform%2Fupstream%2Flibdrm.git autogen.sh: run git commands in the (potentially) git dir If the build dir is outside of the git dir, the order matters :) Signed-off-by: Eric Engestrom Reviewed-by: Chad Versace Reviewed-by: Emil Velikov --- diff --git a/autogen.sh b/autogen.sh index d003096..13d6991 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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