2 # Copyright 2011 Brent Longborough
3 # Please read gitinfo.pdf for licencing and other details
4 # -----------------------------------------------------
5 # cp gitinfohook.sh .git/hooks/post-update
6 # chmod +x .git/hooks/post-update
8 #prefixes=". test docs" # Example for multiple gitHeadInfo.tex files
9 prefixes="." # Default --- in the working copy root
12 git log -1 --date=short \
13 --pretty=format:"\usepackage[%
27 ]{gitsetinfo}" HEAD > $pref/gitHeadInfo.gin