summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-02-21 18:03:59 +0100
committerWerner Koch <wk@gnupg.org>2018-02-21 18:26:23 +0100
commit914a2413228e24db47d27fa2bb70a5964a1720d8 (patch)
treebbe4a94bc0a9ef68bdd247ac89338cb337cbfbc9 /autogen.sh
parentRegister DCO for Jussi. (diff)
downloadgnupg2-914a2413228e24db47d27fa2bb70a5964a1720d8.tar.xz
gnupg2-914a2413228e24db47d27fa2bb70a5964a1720d8.zip
build: Update autogen.sh to set a git PATCH prefix.
-- Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index e5ba5bf05..4b511bf95 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,6 @@
#! /bin/sh
# autogen.sh
-# Copyright (C) 2003, 2014, 2017 g10 Code GmbH
+# Copyright (C) 2003, 2014, 2017, 2018 g10 Code GmbH
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
@@ -15,7 +15,7 @@
# configure it for the respective package. It is maintained as part of
# GnuPG and source copied by other packages.
#
-# Version: 2017-01-17
+# Version: 2018-02-21
configure_ac="configure.ac"
@@ -467,6 +467,10 @@ EOF
EOF
$CP build-aux/git-hooks/commit-msg .git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
+ if [ x"${display_name}" != x ]; then
+ git config format.subjectPrefix "PATCH ${display_name}"
+ git config sendemail.to "${patches_to}"
+ fi
fi
fi