[GRASS-dev] Re: Code re-indentation: done.

Markus Neteler neteler at osgeo.org
Thu Aug 7 05:36:40 EDT 2008


On Tue, Aug 5, 2008 at 11:17 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> 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.]

Excellent.
Fixed in 6.4.svn and 7.0.svn.

Also lib/external/shapelib formatting is reverted.

@ALL: please update asap from SVN to avoid local conflicts.

Markus


More information about the grass-dev mailing list