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 curiosity: what's the result of the original command on Solaris?
git log -n 1 --date=short --pretty=format:%ci | sed
"s/^.*\([0-9][0-9][0-9][0-9]\)-\([0-9][0-9]\)-\([0-9][0-9]\).*$/\1\2\3/"
is ugly, but it *should* work.
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?
Ciao,
Kili
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc