git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Bienert <bienert@zbh.uni-hamburg.de>
To: git@vger.kernel.org
Subject: pre-commit hook and Aspell
Date: Fri, 30 Jul 2010 10:51:28 +0200	[thread overview]
Message-ID: <4C529290.7040509@zbh.uni-hamburg.de> (raw)

Hi gits,

as instructed by the wiki, I just sent an request to the list without
being subscribed...

I'm trying to setup a hook for my project which forces me to check the
spelling of text (here: TeX) files, whenever they change. As
spellchecker I use Aspell, which is giving me a headache at the moment.
The problem is: Running the pre-commit script in the shell works,
started as hook does not.

Here is my script (cut down to a minimalist version resembling the problem):

# SNIP
#!/bin/sh

for my_p in $(git status --porcelain | awk '{ if ($0 ~ /\.(tex|sty)$/) {
print $2 } }')
do
    aspell -c -l en_GB -p $(pwd)/${my_cdup}share/dict/aspell.corb.pws
$my_p || exit 1
done
# SNAP

regards,

Stefan

-- 
Stefan Bienert
Zentrum fuer Bioinformatik
Universitaet Hamburg
Bundesstrasse 43
20146 Hamburg
Germany

Email: bienert@zbh.uni-hamburg.de
Phone:  +49 (40) 42838 7345
Fax:    +49 (40) 42838 7332

             reply	other threads:[~2010-07-30  9:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30  8:51 Stefan Bienert [this message]
2010-07-30 15:59 ` pre-commit hook and Aspell Junio C Hamano
2010-07-30 18:21 ` Jeff King

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=4C529290.7040509@zbh.uni-hamburg.de \
    --to=bienert@zbh.uni-hamburg.de \
    --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).