[GRASS-dev] Re: Code re-indentation: done.
Markus Neteler
neteler at osgeo.org
Mon Aug 11 20:47:38 EDT 2008
On Tue, Aug 12, 2008 at 2:09 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Markus Neteler wrote:
...
>> I have added this gettext polishing trick to
>> tools/grass_indent.sh
>
> However, this only catches some of the cases; there are also cases
> where the underscore isn't preceded by a left parenthesis, e.g. the
> ->description fields of parser options.
>
> A more general solution, is:
>
> find . -type f -name '*.c' | xargs grep -l '\<_$' | \
> while read file ; do sed -i -e '/[( \t]_$/{;N;s/\n[ \t]*//;}' $file ; done
>
> [Almost the same as before, but with different regexps.]
>
> I have made this change to grass_indent.sh, and also committed the
> fixed files.
Great.
I have fixed 6.4.svn accordingly. Please all update...
Markus
(who wonders why we didn't invent tools/grass_indent.sh some years ago)
More information about the grass-dev
mailing list