This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix output in mklog


Ping.

On Thu, May 31, 2012 at 10:12:09PM +0200, Marek Polacek wrote:
> The new mklog script prints three spaces after the date part, which
> is wrong.  Thus fixed by adjusting the split pattern.  Tested manually.
> 
> 2012-05-31  Marek Polacek  <polacek@redhat.com>
> 
> 	* mklog: Prevent printing three spaces after the date.
> 
> --- gcc/contrib/mklog.mp	2012-05-31 22:03:07.492457065 +0200
> +++ gcc/contrib/mklog	2012-05-31 22:03:21.824493596 +0200
> @@ -29,7 +29,7 @@
>  # Change these settings to reflect your profile.
>  $username = $ENV{'USER'};
>  $name = `finger $username | grep -o 'Name: .*'`;
> -@n = split(/:/, $name);
> +@n = split(/: /, $name);
>  $name = @n[1]; chop($name);
>  $addr = $username . "\@my.domain.org";
>  $date = `date +%Y-%m-%d`; chop ($date);
> 
> 	Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]