From 4121ef7b3e4f6389fb05597fc159d9929ba84471 Mon Sep 17 00:00:00 2001
From: Jakob Voss
$$1
.!g' paia.html
+REVHASH=$(shell git log -1 --format="%H" paia.md)
+REVDATE=$(shell git log -1 --format="%ad" --date=short paia.md)
+
+paia.html: paia.md template.html5 references.bib
+ sed s/GIT_REVISION_DATE/${REVDATE}/ paia.md \
+ | pandoc -N --bibliography=references.bib --template=template --toc -f markdown -t html5 -- \
+ | perl -p -e 's!(http://[^<]+)\.!$$1
.!g' \
+ | sed 's!GIT_REVISION_HASH!${REVHASH}<\/a>!' > paia.html
+
+
diff --git a/paia.md b/paia.md
index db967ef..d72c718 100644
--- a/paia.md
+++ b/paia.md
@@ -1,7 +1,6 @@
% Patrons Account Information API (PAIA)
% Jakob Voß
-% 2012-05-22
-
+% GIT_REVISION_DATE
# Introduction
@@ -20,7 +19,9 @@ based on use cases and taking into account existing related standards and
products such as NISO Circulation Interchange Protocol (NCIP), \[X]SLNP,
DLF-ILS recommendations, and ViFind ILS drivers.
-Updates and sources can be found at