public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 70+ typos in 2.4.22 + script to generate diffs
@ 2003-09-01 18:15 Stephane LOEUILLET
  2003-09-01 22:19 ` 500 typos (94 uniques) fixed in 2.4.22 + link to diff included Stephane LOEUILLET
  0 siblings, 1 reply; 5+ messages in thread
From: Stephane LOEUILLET @ 2003-09-01 18:15 UTC (permalink / raw)
  To: linux-kernel

hello,

i know, typos aren't really what real programers are looking to fix first
but if those aren't fixed, they would be reported ever and ever and ever
...

so, as i did not know what to do today, i started looking for a few common
typos and found around  70 different ones over the 2.4.22 tree. (some only
written once, others written several times)

as tracking typo is borring, i started to write a perl script that would :

- copy all files containing a know typo (from a separate file) from your
local linux tree (parameter : $KERNEL_SOURCE_ROOT) to a local directory
(parameter : $LOCAL_DIFF_DIR)

- replace all typo by its correct spelling for all know world

It's up to you to merge the diffs after the process is complete (around 1min
for 74 different typos scanning complete 2.4.22 with a Athl2600+)

The script : http://www.leroutier.net/kernel-typo-diffmaker.pl.txt
The typo list : http://www.leroutier.net/typos.base

(put them in the same dir)

then, look at the script (to see it won't "rm -fR / ; kill -9 0")
rename .pl.txt file to .pl then chmod 755 on it
edit both $KERNEL_SOURCE_ROOT and $LOCAL_DIFF_DIR to match your needs
then again, ./kernel-typo-diffmaker.pl

$KERNEL_SOURCE_ROOT could be either your local kernel source dir or one of
its sub-dirs (ex : /usr/src/linux-2.4.22/fs/ufs/)

if you find it useful, use it. if not, sorry.

Stephane LOEUILLET



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-02  6:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 18:15 70+ typos in 2.4.22 + script to generate diffs Stephane LOEUILLET
2003-09-01 22:19 ` 500 typos (94 uniques) fixed in 2.4.22 + link to diff included Stephane LOEUILLET
     [not found]   ` <1062457091.18044.13.camel@localhost.localdomain>
2003-09-01 23:39     ` Dan Kegel
2003-09-02  1:00       ` Steven Cole
     [not found]       ` <1062464715.3477.2.camel@spc>
2003-09-02  6:44         ` Latest copy of spell-fix.txt was " Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox