On Wed, 2 Jun 2010, Eric Blake wrote:
On 06/02/2010 03:25 PM, Stefano Lattarini wrote:
Hello Raphael.
At Wednesday 02 June 2010, "Raphael 'kena' Poss" wrote:
m4_define([v_rev], m4_esyscmd([(svnversion . | grep -v exported || echo 0) | awk -F : '{printf("%s", $1);}' | tr 'A-z' ' ' | sed 's/ //g']))
you probably want to add
| tr -d '\n'
to that command line, to remove the trailing newline.
Souldn't the printf("%s", $1) already taking care of the newline removal?
Yes, but sed adds it back in.
Not to mention that you used a non-portable extension of sed by passing
it a non-text file (Solaris sed chokes if the input does not end in
newline).
thank you to all. I'll consider all your remarks.
Vincent Torri
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf