Make the Sprout version of the spec say [Sprout] in the version.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2018-07-18 11:17:33 +01:00
parent e1ee4e615e
commit 4d8031f659
2 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ sapling.pdf: protocol.tex zcash.bib incremental_merkle.pdf key_components_saplin
.PHONY: auxpdf
auxpdf:
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
printf '\\renewcommand{\\docversion}{Version %s [\\SproutSpec]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
mkdir -p aux
rm -f aux/protocol.*
$(LATEXMK) -auxdir=aux -outdir=aux protocol
@ -21,7 +21,7 @@ pdf:
.PHONY: pvcpdf
pvcpdf:
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
printf '\\renewcommand{\\docversion}{Version %s [\\SproutSpec]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
mkdir -p aux
rm -f aux/protocol.*
$(LATEXMK) -pvc -auxdir=aux protocol
@ -47,7 +47,7 @@ pvcsapling:
.PHONY: nolatexmk-pdf
nolatexmk-pdf:
printf '\\renewcommand{\\docversion}{Version %s}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
printf '\\renewcommand{\\docversion}{Version %s [\\SproutSpec]}' "$$(git describe --tags --abbrev=6)" |tee protocol.ver
# If $(LATEX) fails, touch an input so that 'make' won't think it is up-to-date next time.
rm -f protocol.aux protocol.bbl protocol.blg protocol.brf protocol.bcf
$(LATEX) protocol.tex || { touch incremental_merkle.pdf; exit 1; }

View File

@ -322,6 +322,7 @@
\newcommand{\docversion}{Version unavailable (check protocol.ver)}
\newcommand{\SproutSpec}{Sprout}
\newcommand{\SaplingSpec}{Overwinter+Sapling}
\newtoggle{issapling}
\togglefalse{issapling}