Commit 9e752df2 authored by Lars Wirzenius's avatar Lars Wirzenius

Change: use "git describe" as version number in doc

parent 004a0503
......@@ -2,6 +2,16 @@
set -eu
tmp="$(mktemp -d)"
cleanup()
{
rm -rf "$tmp"
}
#trap cleanup EXIT
version="$(git describe)"
sed "s/^date: .*/date: $version/" vmdb2.mdwn > "$tmp/prelude.mdwn"
pandoc \
--self-contained \
--standalone \
......@@ -9,7 +19,7 @@ pandoc \
--toc \
--number-sections \
-o vmdb2.html \
vmdb2.mdwn vmdb/plugins/*.mdwn
"$tmp/prelude.mdwn" vmdb/plugins/*.mdwn
pandoc \
--pdf-engine=xelatex \
......@@ -23,4 +33,4 @@ pandoc \
-Vmonofont:FreeMonoBold \
'-Vgeometry:top=2cm, bottom=2.5cm, left=2cm, right=1cm' \
-o vmdb2.pdf \
vmdb2.mdwn vmdb/plugins/*.mdwn
"$tmp/prelude.mdwn" vmdb/plugins/*.mdwn
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment