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>
main
Emil Velikov 2016-12-12 17:50:46 +00:00
parent 3bc14c8cb9
commit 0645648dd0
1 changed files with 6 additions and 0 deletions

View File

@ -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