mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephane LOEUILLET <news@leroutier.net>
To: linux-kernel@vger.kernel.org
Subject: 70+ typos in 2.4.22 + script to generate diffs
Date: Mon, 01 Sep 2003 20:15:30 +0200	[thread overview]
Message-ID: <pan.2003.09.01.18.15.22.368626@leroutier.net> (raw)

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



             reply	other threads:[~2003-09-01 18:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-01 18:15 Stephane LOEUILLET [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2003.09.01.18.15.22.368626@leroutier.net \
    --to=news@leroutier.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®