Skip to content

Commit 9ba5343

Browse files
committed
Include version in the PDF and text manuals.
1 parent c9eed2b commit 9ba5343

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ test-clean:
514514
test-distclean:
515515
make -C testsuite distclean
516516

517-
# Copy manual to compiler
518-
build/compiler/MANUAL.md: manual.md
519-
cp -f $< $@
517+
# Copy manual to compiler changing the version string.
518+
build/compiler/MANUAL.md: manual.md version.mk
519+
LC_ALL=C sed 's/%VERSION%/$(VERSION)/' < $< > $@
520520

521521
# Copy other files to compiler folder
522522
build/compiler/%: compiler/%

make-release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ compile_win32
8585
compile_osx
8686

8787
# Makes PDF using "pandoc"
88-
pandoc manual.md -o "${out}-manual.pdf" \
88+
make build/compiler/MANUAL.md
89+
pandoc build/compiler/MANUAL.md -o "${out}-manual.pdf" \
8990
--from markdown-raw_tex --template template.tex \
9091
--listings --toc --number-sections
9192

92-
pandoc compiler/USAGE.md -o "${out}-cross-compiler.pdf" \
93+
make build/compiler/USAGE.md
94+
pandoc build/compiler/USAGE.md -o "${out}-cross-compiler.pdf" \
9395
--from markdown-raw_tex --template ~/eisvogel.tex --listings
9496

manual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% FastBasic - Fast BASIC interpreter for the Atari 8-bit computers
1+
% FastBasic %VERSION% - Fast BASIC interpreter for the Atari 8-bit computers
22

33
Introduction
44
============

0 commit comments

Comments
 (0)