From: Trevor Saunders Date: Mon, 21 Jul 2014 07:45:45 +0000 (+0000) Subject: mklog: Run mklog as a filter. X-Git-Tag: releases/gcc-5.1.0~6178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=633e5fbb241ea135f8f35b1c13152b2415aac81e;p=thirdparty%2Fgcc.git mklog: Run mklog as a filter. contrib/ 2014-07-21 Trevor Saunders Yury Gribov * mklog: Run mklog as a filter. Co-Authored-By: Yury Gribov From-SVN: r212884 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index b714b88eff9b..8060536ad294 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,6 +1,11 @@ 2014-07-21 Trevor Saunders + Yury Gribov - mklog: Read name and email from git config when available. + * mklog: Run mklog as a filter. + +2014-07-21 Trevor Saunders + + * mklog: Read name and email from git config when available. 2014-06-28 Richard Biener diff --git a/contrib/mklog b/contrib/mklog index 5f5d98e9f4df..cdc64551d5f9 100755 --- a/contrib/mklog +++ b/contrib/mklog @@ -59,9 +59,13 @@ if (-d .git) { #----------------------------------------------------------------------------- if ($#ARGV != 0) { $prog = `basename $0`; chop ($prog); - print "usage: $prog file.diff\n\n"; - print "Adds a ChangeLog template to the start of file.diff\n"; - print "It assumes that file.diff has been created with -up or -cp.\n"; + print <$temp") or die "Could not open file $temp for writing"; - foreach my $clname (keys %cl_entries) { - print CLFILE "$clname:\n\n$hdrline\n\n$cl_entries{$clname}\n"; + print "$clname:\n\n$hdrline\n\n$cl_entries{$clname}\n"; } -# Concatenate the ChangeLog template and the original .diff file. -system ("cat $diff >>$temp && mv $temp $diff") == 0 - or die "Could not add the ChangeLog entry to $diff"; - exit 0;