[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] False "binary" files
From: |
James Blackwell |
Subject: |
Re: [Gnu-arch-users] False "binary" files |
Date: |
Tue, 15 Feb 2005 01:39:17 -0500 |
> Then a couple of questions...
>
> I've had a look to pre-precommit and apparently it can do the job, but I
> still see a couple of things that are not completely clear to me:
Not sure what you're referring to, but how about the following:
mv /usr/local/bin/baz /usr/local/bin/baz.real
cat > /usr/local/baz << EOF
#!/bin/sh
#An ultimate pre-commit hook.
if [ "$1" == "commit" ]; then
find . -name *.xml.gz | xargs -n1 gunzip
fi;
baz.real $*
# a ultimate post-commit hook
if [ $? == 0 ]; then
if [ "$1" == "commit"]; then
find . -name *.xml | xargs -n1 gzip
fi;
fi;
EOF
--
James Blackwell | Life is made of the stuff that hasn't killed
Tell someone a joke! | you yet. - yours truly
----------------------------------------------------------------------
GnuPG (ID 06357400) AAE4 8C76 58DA 5902 761D 247A 8A55 DA73 0635 7400
- [Gnu-arch-users] Re: [BUG] Re: False "binary" files, (continued)
- Re: [Gnu-arch-users] Re: [BUG] Re: False "binary" files, Robert Collins, 2005/02/14
- [Gnu-arch-users] Re: [BUG] Re: False "binary" files, Stefan Monnier, 2005/02/14
- Re: [Gnu-arch-users] Re: [BUG] Re: False "binary" files, tomas, 2005/02/14
- [Gnu-arch-users] Re: [BUG] Re: False "binary" files, Stefan Monnier, 2005/02/14
- Re: [Gnu-arch-users] Re: [BUG] Re: False "binary" files, tomas, 2005/02/15
[Gnu-arch-users] False "binary" files, Sergio Callegari, 2005/02/14