summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/gitinfo/post-xxx-sample.txt
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-03 23:05:48 +0000
committerKarl Berry <karl@freefriends.org>2011-09-03 23:05:48 +0000
commit2898d79db8fd35f3151ead38d075c66507556f8e (patch)
tree6207c5d3e1ca3d1d50ff6bd7dd3c2ecafcc3bf98 /Master/texmf-dist/doc/latex/gitinfo/post-xxx-sample.txt
parenta2558adec96db705392e3d601c12fa811c198f4f (diff)
new latex package gitinfo (30aug11)
git-svn-id: svn://tug.org/texlive/trunk@23779 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/gitinfo/post-xxx-sample.txt')
-rw-r--r--Master/texmf-dist/doc/latex/gitinfo/post-xxx-sample.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/gitinfo/post-xxx-sample.txt b/Master/texmf-dist/doc/latex/gitinfo/post-xxx-sample.txt
new file mode 100644
index 00000000000..7bc91ceabd5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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