[PATCH util/macros] Add new script xorg-prepare-git-repo.sh

Emil Velikov emil.l.velikov at gmail.com
Tue Jan 31 10:24:55 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

New script invoked by the project's autogen.sh to facilitate basic git
config setup and likely others in the future.

Ensure that all of output is redirected to /dev/null and the script is
bundled + installed.

Cc: Peter Hutterer <peter.hutterer at who-t.net>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 Makefile.am              | 1 +
 xorg-prepare-git-repo.sh | 7 +++++++
 2 files changed, 8 insertions(+)
 create mode 100644 xorg-prepare-git-repo.sh

diff --git a/Makefile.am b/Makefile.am
index 134a5cc..ff6087a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,6 +21,7 @@
 
 aclocaldir = $(datadir)/aclocal
 aclocal_DATA = xorg-macros.m4
+dist_bin_SCRIPTS = xorg-prepare-git-repo.sh
 dist_pkgdata_DATA = INSTALL
 
 # Previous versions used to install xorgversion.m4, now integrated
diff --git a/xorg-prepare-git-repo.sh b/xorg-prepare-git-repo.sh
new file mode 100644
index 0000000..697cee9
--- /dev/null
+++ b/xorg-prepare-git-repo.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+git config --local --get sendemail.to >/dev/null 2>&1 ||
+    git config --local sendemail.to "xorg-devel at lists.x.org" >/dev/null 2>&1
+
+git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
+    git config --local format.subjectPrefix "PATCH $modulename" >/dev/null 2>&1
-- 
2.11.0



More information about the xorg-devel mailing list