aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-02-21 16:56:40 +0000
committerWerner Koch <[email protected]>2018-02-21 16:56:40 +0000
commita70502e93f06b394760fe671913c283018718ced (patch)
tree05a82666cb7456ea685fa12e66079c2b86d98501
parentdoc: Add extra hint on unattended use of gpg. (diff)
downloadgnupg-a70502e93f06b394760fe671913c283018718ced.tar.gz
gnupg-a70502e93f06b394760fe671913c283018718ced.zip
build: Update autogen.sh
-- Now installs a git patch prefix. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--autogen.rc2
-rwxr-xr-xautogen.sh7
2 files changed, 7 insertions, 2 deletions
diff --git a/autogen.rc b/autogen.rc
index 68359299b..3ea03e08f 100644
--- a/autogen.rc
+++ b/autogen.rc
@@ -1,5 +1,7 @@
# autogen.sh configuration for GnuPG -*- sh -*-
+display_name=GnuPG
+
#version_parts=3
case "$myhost:$myhostsub" in
diff --git a/autogen.sh b/autogen.sh
index e5ba5bf05..b23855061 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,9 @@ 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}"
+ fi
fi
fi