On Fri, Jun 08, 2007 at 09:05:54PM +0200, Sam Ravnborg wrote:
[]
> > 
> > It does better whitespace cleanup, than
> > 
> > scripts/{cleanfile *and* cleanpatch}
> 
> Made a short test here.
> Added the following to a file:
> 
> static sam = "                    ";
> 
> clean-whitespace replaced spaces within "" with tabs.
> cleanfile did not.

So, user with `diff` will see that and fix or a way of usage spaces in
strings, or will update BRE, used for that kind of match ;)

Still, better job:
|-*- 
[EMAIL PROTECTED]:/tmp$ ls -l ipv62.h.clean
-rw-r----- 1 olecom root 10591 Jun  8 22:47 ipv62.h.clean +2 bytes
[EMAIL PROTECTED]:/tmp$ ls -l ipv66.h
-rw-r----- 1 olecom root 10704 Jun  8 22:47 ipv66.h
[EMAIL PROTECTED]:/tmp$
|-*-

But there will be two shifted words, because it doesn't calculate
tabstops. I've choose to remove spaces before tab, so it will be visible
and easy to fix by hand. Only spaces up-to next tabstop - 1 after
possible tab is OK.
____

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kbuild-devel mailing list
kbuild-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to