summaryrefslogtreecommitdiffhomepage
path: root/m4/foot.m4
blob: c980b9a1b8ea6bbbe84e9b1d134cda864e48bba1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
m4_define(FOOT, ‘‘
	m4_define(‘‘__HASH’’, m4_esyscmd(
		git rev-list --max-count=1 ‘‘HEAD’’ m4___file__
	))
	m4_define(‘‘__DATE’’, m4_esyscmd(
		git log --max-count=1 --pretty='format:%cI' m4___file__ \
		| xargs --no-run-if-empty -- date '+%-d %B %Y (%A) — %T %Z' --date \
		| ifne -n echo 'No commit yet…'
	))
	m4_include(foot.gsp)
’’)