summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2016-12-12 17:50:46 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-14 17:10:51 +0000
commit0645648dd08942face3cad03bedcdd39e3a6f5fc (patch)
tree5c6452439896f26c428125430e51f373f7201246 /autogen.sh
parent3bc14c8cb99a8c4d927e07f947449c3e50d188c9 (diff)
downloadlibdrm-0645648dd08942face3cad03bedcdd39e3a6f5fc.tar.gz
libdrm-0645648dd08942face3cad03bedcdd39e3a6f5fc.tar.bz2
libdrm-0645648dd08942face3cad03bedcdd39e3a6f5fc.zip
autogen.sh: set format.subjectPrefix and sendemail.to if needed
Just set the rules automatically rather than asking each contributor to update thing locally. v2: Silence errors if run outside of git repo. (Eric) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index c8960971..d82ab180 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -9,6 +9,12 @@ cd "$srcdir"
autoreconf --force --verbose --install || exit 1
cd "$ORIGDIR" || exit $?
+git config --local --get format.subjectPrefix ||
+ git config --local format.subjectPrefix "PATCH libdrm" 2>/dev/null
+
+git config --local --get sendemail.to ||
+ git config --local sendemail.to "dri-devel@lists.freedesktop.org" 2>/dev/null
+
if test -z "$NOCONFIGURE"; then
"$srcdir"/configure "$@"
fi