diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-05-04 14:15:47 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-05-04 14:15:47 +0300 |
commit | 12d52a760cd6f725a9c07d841a043a21a2c4fe2c (patch) | |
tree | 4359bd8e58aa08589c16f4d195084bc3484b3643 | |
parent | 41e0dfb85e8d69cdf063ce363ce69d6f0c7ec5fc (diff) | |
download | saga-poc-12d52a760cd6f725a9c07d841a043a21a2c4fe2c.tar.gz |
Fix: get date from git into document
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | docid | 2 | ||||
-rw-r--r-- | saga.pdf | bin | 143563 -> 143543 bytes | |||
-rw-r--r-- | saga.yarn | 2 |
4 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,8 @@ all: muck1.pdf muck2.pdf muck3.pdf jt1.pdf jt2.pdf saga.pdf %.pdf: %.yarn - pandoc -o $@ $< \ + sed "s/%VERSION%/$$(./docid "$<")/" "$<" > tmp + pandoc -o $@ tmp \ --number-sections \ --toc \ --top-level-division=chapter \ @@ -13,3 +14,4 @@ all: muck1.pdf muck2.pdf muck3.pdf jt1.pdf jt2.pdf saga.pdf -Vsansfont:FreeSans \ -Vmonofont:FreeMonoBold \ -Vgeometry:top=2cm,bottom=2.5cm,left=2cm,right=1cm +# rm -f tmp @@ -2,5 +2,5 @@ set -eu -git show "$1" | sed -n '/^Date: */s///p' +git log "$1" | sed '/^$/,$d' | sed -n '/^Date: */s///p' @@ -3,7 +3,7 @@ title: Acceptance testing using Saga author: - Lars Wirzenius - Daniel Silverstone -date: WIP +date: %VERSION% keywords: - automated acceptance testing - scenario testing |