> 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 mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/