diff options
Diffstat (limited to 'macros/latex/contrib/gitinfo/post-xxx-sample.txt')
-rw-r--r-- | macros/latex/contrib/gitinfo/post-xxx-sample.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/latex/contrib/gitinfo/post-xxx-sample.txt b/macros/latex/contrib/gitinfo/post-xxx-sample.txt new file mode 100644 index 0000000000..7bc91ceabd --- /dev/null +++ b/macros/latex/contrib/gitinfo/post-xxx-sample.txt @@ -0,0 +1,27 @@ +#!/bin/sh +# Copyright 2011 Brent Longborough +# Please read gitinfo.pdf for licencing and other details +# ----------------------------------------------------- +# Post-{commit,checkout,merge} hook for the gitinfo package +# +prefixes=". test docs" # Example for multiple gitHeadInfo.tex files +prefixes="." # Default --- in the working copy root +for pref in $prefixes + do + git log -1 --date=short \ + --pretty=format:"\usepackage[% + shash={%h}, + lhash={%H}, + authname={%an}, + authemail={%ae}, + authsdate={%ad}, + authidate={%ai}, + authudate={%at}, + commname={%an}, + commemail={%ae}, + commsdate={%ad}, + commidate={%ai}, + commudate={%at}, + refnames={%d} + ]{gitsetinfo}" HEAD > $pref/gitHeadInfo.gin + done |