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

Hamish hamish_b at yahoo.com
Tue Aug 5 22:27:31 EDT 2008


Martin Landa wrote:
> > btw what to do with messages indented like
> > G_message(_
> >                   (...));
Glynn:
> 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.]


see also
 http://article.gmane.org/gmane.comp.gis.grass.devel/27382
 http://article.gmane.org/gmane.comp.gis.grass.devel/27387


Hamish



      



More information about the grass-dev mailing list