cesko-digital / derisking-handbook

Příručka řízení státních IT projektů
https://cesko.digital/prirucka
Creative Commons Attribution Share Alike 4.0 International
16 stars 6 forks source link

Improve version stamping #2

Open zoul opened 4 years ago

zoul commented 4 years ago

Right now the version stamps are a bit of a mess – when minting a new release we must manually update the version number in the source .md file, in the source .afpub file and in the typeset .pdf version. This is too easy to get wrong (as witnessed by mismatched version stamps in some of the releases).

As for the Markdown version, that’s trivially solved by using a version placeholder in the source and replacing it during the release process automatically. But can we do the same with the typeset PDF version? (PDFtk?)

zoul commented 4 years ago

Tried pdftk, the “uncompressed” version of the PDF is still a load of binary garbage, so sed doesn’t work. Tried qpdf, similar story. No plan B at the moment, maybe we’ll think of something later.