Re: [PATCH] do not use sed for version date processing but rather simpler cut

2011-04-20 Thread Ian Lynagh
On Tue, Apr 19, 2011 at 12:11:53AM +0200, Matthias Kilian wrote: > On Mon, Apr 18, 2011 at 09:10:28AM +0200, Karel Gardas wrote: > > >Apart from this, a much simpler version (using cut, inspired by > > >your diff, but also tr) may be: > > > > > > git log -n 1 --date=short --pretty=format:%ci | cu

Re: [PATCH] do not use sed for version date processing but rather simpler cut

2011-04-18 Thread Matthias Kilian
On Mon, Apr 18, 2011 at 09:10:28AM +0200, Karel Gardas wrote: > >Apart from this, a much simpler version (using cut, inspired by > >your diff, but also tr) may be: > > > > git log -n 1 --date=short --pretty=format:%ci | cut -d ' ' -f 1 | tr > > -d - > > > >Does this work on Solaris? > > G

Re: [PATCH] do not use sed for version date processing but rather simpler cut

2011-04-18 Thread Karel Gardas
On 04/18/11 08:13 AM, Matthias Kilian wrote: On Sun, Apr 17, 2011 at 11:44:33PM +0200, Karel Gardas wrote: This patch fixes issue with version date processing on Solaris while using Solaris' provided sed. I don't know sed enough to remove GNUism in version date processing so I replaced sed usage

Re: [PATCH] do not use sed for version date processing but rather simpler cut

2011-04-17 Thread Matthias Kilian
On Sun, Apr 17, 2011 at 11:44:33PM +0200, Karel Gardas wrote: > This patch fixes issue with version date processing on Solaris while using > Solaris' provided sed. I don't know sed enough to remove GNUism in version > date processing so I replaced sed usage in this task by few cut calls. Out of cu

[PATCH] do not use sed for version date processing but rather simpler cut

2011-04-17 Thread Karel Gardas
This patch fixes issue with version date processing on Solaris while using Solaris' provided sed. I don't know sed enough to remove GNUism in version date processing so I replaced sed usage in this task by few cut calls. --- aclocal.m4 |6 +- 1 files changed, 5 insertions(+), 1 deletions(-