summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpandoc.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/pandoc.sh b/pandoc.sh
index 7372f3f..881e00a 100755
--- a/pandoc.sh
+++ b/pandoc.sh
@@ -2,12 +2,18 @@
set -eu
+docdate()
+{
+ git describe --dirty HEAD 2> /dev/null || date -R
+}
+
pandoc \
--filter ./pandoc-fable-filter \
--toc \
--number-sections \
--standalone \
--self-contained \
+ "-Vdate:$(docdate)" \
-Vdocumentclass:report \
-Vtitlepage:true \
-Vfontsize:12pt \