Mercurial > hgbook
view en/examples/hook.simple @ 48:e8ab09bf5d7d
Force the \grafix macro to use the PDF image
It would seem that the \includegraphics macro is moody and sometimes it
prefers the png over the pdf. This should force it to always use the right
file type.
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 24 Jul 2006 15:58:33 -0400 |
parents | 6f37e6a7d8cd |
children | ceaca14e49f0 |
line wrap: on
line source
#!/bin/bash #$ name: init hg init hook-test cd hook-test echo '[hooks]' >> .hg/hgrc echo 'commit = echo committed $HG_NODE' >> .hg/hgrc cat .hg/hgrc echo a > a hg add a hg commit -m 'testing commit hook' #$ name: ext echo 'commit.when = echo "date of commit:"; date' >> .hg/hgrc echo a >> a hg commit -m 'i have two hooks' #$ name: echo '#!/bin/sh' >> check_bug_id echo '# check that a commit comment mentions a numeric bug id' >> check_bug_id echo 'hg log -r $1 --template {desc} | grep -q "\<bug *[0-9]"' >> check_bug_id chmod +x check_bug_id #$ name: pretxncommit cat check_bug_id echo 'pretxncommit.bug_id_required = ./check_bug_id $HG_NODE' >> .hg/hgrc echo a >> a hg commit -m 'i am not mentioning a bug id' hg commit -m 'i refer you to bug 666'