Martin Landa wrote:

> btw what to do with messages indented like
> 
> G_message(_
>                   (...));

Damn; I thought that not specifying -l would prevent this from
happening.

> manually fix when fixing/updating code to?
> 
> G_message(_(...));

We can fix them automatically:

        find . -type f -name '*.c' | xargs grep -l '(_$' | \
        while read file ; do sed -i -e '/(_$/{;N;s/\n[ \t]*//;}' $file ; done

[Note: using \t in a character set is a GNU extension; other versions
of sed need a literal tab character.]

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to