On 12/03/07, Jim Meyering <[EMAIL PROTECTED]> wrote:
# lines affected/ws-prefixed lines: 3783/31330
# files affected: 76/80
n: 1 #unchanged: already have TAB-based indentation
N: 3 #unchanged: already perfect
^: 11 #files changed to have all-spaces indentation
_: 65 #files changed to have TAB-based indentation
The parsing done by the script is extremely naive :) It counts
the leading space in multi line comments as indentation which
it is not. Filtering each file through stripcmt first [1] gives a
somewhat different result:
# lines affected/ws-prefixed lines: 1045/28030
# files affected: 58/80
n: 19 #unchanged: already have TAB-based indentation
N: 2 #unchanged: already perfect
0: 1 #unchanged: no candidate lines
^: 6 #files changed to have all-spaces indentation
_: 52 #files changed to have TAB-based indentation
Although the result from the script is only a rough estimate,
excluding the largest entry of the 52 files (with 171 lines), the
average of the other 51 is just 15 lines pr file. So for a few files
there will be large changes, but overall correcting the indentation
will not be an extremely invasive change.
BR Håkon Løvdal
[1]
... open FH, "stripcmt $file |" ...
http://www.bdc.cx/software/stripcmt/
_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel