diff options
author | Eric Engestrom | 2017-02-03 12:21:10 -0600 |
---|---|---|
committer | Eric Engestrom | 2017-02-28 07:34:26 -0600 |
commit | 1bf96af525436d3727d44d137fe922b491512b14 (patch) | |
tree | fd0318246787094e9aa8bc11c63868c36dd1b790 | |
parent | a6cdfa5cd8cc953ffec4497cd8262059c4b14675 (diff) | |
download | external-libgbm-1bf96af525436d3727d44d137fe922b491512b14.tar.gz external-libgbm-1bf96af525436d3727d44d137fe922b491512b14.tar.xz external-libgbm-1bf96af525436d3727d44d137fe922b491512b14.zip |
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 <eric.engestrom@imgtec.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,15 +6,15 @@ test -z "$srcdir" && srcdir=. | |||
6 | ORIGDIR=`pwd` | 6 | ORIGDIR=`pwd` |
7 | cd "$srcdir" | 7 | cd "$srcdir" |
8 | 8 | ||
9 | autoreconf --force --verbose --install || exit 1 | ||
10 | cd "$ORIGDIR" || exit $? | ||
11 | |||
12 | git config --local --get format.subjectPrefix >/dev/null || | 9 | git config --local --get format.subjectPrefix >/dev/null || |
13 | git config --local format.subjectPrefix "PATCH libdrm" 2>/dev/null | 10 | git config --local format.subjectPrefix "PATCH libdrm" 2>/dev/null |
14 | 11 | ||
15 | git config --local --get sendemail.to >/dev/null || | 12 | git config --local --get sendemail.to >/dev/null || |
16 | git config --local sendemail.to "dri-devel@lists.freedesktop.org" 2>/dev/null | 13 | git config --local sendemail.to "dri-devel@lists.freedesktop.org" 2>/dev/null |
17 | 14 | ||
15 | autoreconf --force --verbose --install || exit 1 | ||
16 | cd "$ORIGDIR" || exit $? | ||
17 | |||
18 | if test -z "$NOCONFIGURE"; then | 18 | if test -z "$NOCONFIGURE"; then |
19 | "$srcdir"/configure "$@" | 19 | "$srcdir"/configure "$@" |
20 | fi | 20 | fi |