70+ typos in 2.4.22 + script to generate diffs

From: Stephane LOEUILLET
Date: Mon Sep 01 2003 - 13:21:59 EST


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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/