From: "Deepak Barua" <dbbarua@gmail.com>
To: git@vger.kernel.org
Subject: Adding spell checker to GIT
Date: Tue, 26 Dec 2006 17:32:14 +0530 [thread overview]
Message-ID: <b5a19cd20612260402l36451df3g6759de238e05c67c@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 229 bytes --]
Hi All,
I just need some more help on how to check the file in
concerned in the pre commit hook , i have attached a document which
containes the basic perl code i am going to use.
Regards
Deepak
--
Code Code Code Away
[-- Attachment #2: test --]
[-- Type: application/octet-stream, Size: 705 bytes --]
#!/usr/bin/perl -w
#Spell checking script in perl for GIT source tracker program.
#Should be part of pre-commit hook
use Text::Aspell;
my $filename;
my $continue = 0;
open($filename,"./checker.sh") or die "Could not open file";
my $speller = Text::Aspell->new;
die unless $speller;
while(<$filename>) {
if(m/\/\*/ || $continue == 1) {
@words = split / /,$_;
foreach $word (@words) {
if($word eq "*/") {
$continue = 0;
last;
}
else {
print $speller->check($word)
? "$word found\n"
: "$word not fouund \n";
}
$continue = 1;
}
}
next;
}
close $filename;
next reply other threads:[~2006-12-26 12:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-26 12:02 Deepak Barua [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-04 20:46 Adding spell checker to GIT Deepak Barua
2007-01-05 20:49 ` Johannes Schindelin
2007-01-06 3:21 ` Deepak Barua
2007-01-16 16:10 ` Johannes Schindelin
2007-01-16 17:34 ` Deepak Barua
2007-01-25 14:36 ` Deepak Barua
2007-01-25 16:46 ` Johannes Schindelin
2007-01-26 7:22 ` Deepak Barua
2006-12-05 16:05 Deepak Barua
2006-12-05 16:12 ` Jakub Narebski
2006-12-05 16:13 ` Johannes Schindelin
2006-12-05 16:39 ` Deepak Barua
2006-12-05 17:08 ` Andreas Ericsson
[not found] ` <200612051726.kB5HQO2t015777@laptop13.inf.utfsm.cl>
2006-12-12 19:51 ` Deepak Barua
2006-12-12 20:27 ` Johannes Schindelin
[not found] ` <d22d265a0612130103o1efcbd87sb93be9c2dad71307@mail.gmail.com>
2006-12-13 10:25 ` Johannes Schindelin
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=b5a19cd20612260402l36451df3g6759de238e05c67c@mail.gmail.com \
--to=dbbarua@gmail.com \
--cc=git@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;
as well as URLs for NNTP newsgroup(s).