Skip to content

Commit

Permalink
contrib/
Browse files Browse the repository at this point in the history
2014-07-21  Trevor Saunders  <[email protected]>

	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
  • Loading branch information
ygribov committed Jul 21, 2014
1 parent 36e7893 commit 430c950
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014-07-21 Trevor Saunders <[email protected]>

mklog: Read name and email from git config when available.

2014-06-28 Richard Biener <[email protected]>

* gennews: Use gcc-3.0/index.html.
Expand Down
14 changes: 14 additions & 0 deletions contrib/mklog
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 430c950

Please sign in to comment.