Skip to contentSkip to conversation

autogen.sh: don't pint old git-config values

PATCH In review Eric Engestrom 4 participants 5 messages Feb 3, 2017 – Feb 4, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 autogen.sh: don't pint old git-config values

Old values are of no interest to the user, so let's reduce the spam a bit by hiding those.

---
 autogen.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
autogen.sh +2 -2
index d82ab180..d0030969 100755
@@ -9,10 +9,10 @@ cd "$srcdir"
 autoreconf --force --verbose --install || exit 1
 cd "$ORIGDIR" || exit $?
 
-git config --local --get format.subjectPrefix ||
+git config --local --get format.subjectPrefix >/dev/null ||
     git config --local format.subjectPrefix "PATCH libdrm" 2>/dev/null
 
-git config --local --get sendemail.to ||
+git config --local --get sendemail.to >/dev/null ||
     git config --local sendemail.to "[email protected]" 2>/dev/null
 
 if test -z "$NOCONFIGURE"; then
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/2 autogen.sh: run git commands in the (potentially) git dir

If the build dir is outside of the git dir, the order matters :)

---
 autogen.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
autogen.sh +3 -3
index d0030969..13d6991e 100755
@@ -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 "[email protected]" 2>/dev/null
 
+autoreconf --force --verbose --install || exit 1
+cd "$ORIGDIR" || exit $?
+
 if test -z "$NOCONFIGURE"; then
     "$srcdir"/configure "$@"
 fi
Signature · 7 lines
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH libdrm 2/2] autogen.sh: run git commands in the (potentially) git dir

Quoted 4 lines · Eric Engestrom

If the build dir is outside of the git dir, the order matters :)

---

Wondering if you've got hit by this or you noticed my identical patch on xorg-devel ;-)

Either way, for both

-Emi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

Re: [PATCH libdrm 2/2] autogen.sh: run git commands in the (potentially) git dir

Quoted 7 lines · Emil Velikov
Quoted 4 lines · Eric Engestrom

If the build dir is outside of the git dir, the order matters :)

---

Wondering if you've got hit by this or you noticed my identical patch on xorg-devel ;-)

Both, actually: I noticed the unnecessary output I fixed in the first patch, and while in there I saw that the git commands were in the wrong place (probably because I remembered your patches).

Quoted 5 lines

Either way, for both

-Emi

Thanks; I don't have commit access on this repo, can you push them for me?

Cheers,
Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/2
#4 lore raw
In reply to Eric Engestrom
Quoted 7 lines · Eric Engestrom

Old values are of no interest to the user, so let's reduce the spam a bit by hiding those.

---
 autogen.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

The subject should say "print". Otherwise, the series is

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel