summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-21 07:39:40 +0000
committerygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-21 07:39:40 +0000
commit430c950d56a88847639918deab16392e4eddf8d1 (patch)
tree4f908e5f0da1986e6b7715493b72ee7891c32317 /contrib
parent36e7893994dd8c219400d8004fb1dbf7e4cbc62c (diff)
downloadgcc-430c950d56a88847639918deab16392e4eddf8d1.tar.gz
contrib/
2014-07-21 Trevor Saunders <tsaunders@mozilla.com> mklog: Read name and email from git config when available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/mklog14
2 files changed, 18 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 3a94c98da90..b714b88eff9 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2014-07-21 Trevor Saunders <tsaunders@mozilla.com>
+
+ mklog: Read name and email from git config when available.
+
2014-06-28 Richard Biener <rguenther@suse.de>
* gennews: Use gcc-3.0/index.html.
diff --git a/contrib/mklog b/contrib/mklog
index fb489b03a3b..5f5d98e9f4d 100755
--- a/contrib/mklog
+++ b/contrib/mklog
@@ -38,6 +38,20 @@ $gcc_root = $0;
$gcc_root =~ s/[^\\\/]+$/../;
chdir $gcc_root;
+# if this is a git tree then take name and email from the git configuration
+if (-d .git) {
+ $gitname = `git config user.name`;
+ chomp($gitname);
+ if ($gitname) {
+ $name = $gitname;
+ }
+
+ $gitaddr = `git config user.email`;
+ chomp($gitaddr);
+ if ($gitaddr) {
+ $addr = $gitaddr;
+ }
+}
#-----------------------------------------------------------------------------
# Program starts here. You should not need to edit anything below this