teach mklog to look in the current directory for ChangeLog files
commit5dde78191b24822271bc94b9bbe9bf36578e01b9
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Mar 2016 17:36:19 +0000 (6 17:36 +0000)
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Mar 2016 17:36:19 +0000 (6 17:36 +0000)
tree5804bde429ee3a5939876792975aac4f00909a7d
parent5579a199aa5c8491a5885cde72716eb6310dc384
 teach mklog to look in the current directory for ChangeLog files

 when run in repos other than gcc mklog fails to find ChangeLog files
because it looks for $0/../$dir/ChangeLog, but of course if the diff is
for a project other than gcc that might not exist.  It should be fine to
also look for $cwd/$dir/ChangeLog, and use that if we find it.  This
means that for example in binutils-gdb.git you can do git commit,
and then in your editor read git diff HEAD~ | mklog - to generate a
template ChangeLog for that commit.

contrib/ChangeLog:

2016-03-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* mklog: Look for the ChangeLog file in $cwd.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234014 138bc75d-0d04-0410-961f-82ee72b054a4
contrib/ChangeLog
contrib/mklog