aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2023-12-13 18:19:08 +1030
committerGitHub <[email protected]>2023-12-13 18:19:08 +1030
commitcdd51b01a0c68606221582dcd0e024f96975d439 (patch)
tree5bb56f62aa398f61b2cdfdf7a84b13b434e35922 /doc
parent93dbb6290495ccb194759506372b72fac1b1b104 (diff)
parentecbeb0aa47f8a1e29bb462cea9d90e5eb2cb6978 (diff)
Merge pull request #39 from drowe67/ms-ctest-doc
Fix issue preventing documentation ctest from executing in GitHub environment.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile6
-rw-r--r--doc/codec2.tex14
2 files changed, 10 insertions, 10 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 659d4f6..5d05ea4 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -20,10 +20,10 @@ PATH := $(PATH):$(CODEC2_BINARY)/src
PLOT_FILES := hts2a_37_sn.tex hts2a_37_sw.tex hts2a_37_lpc_lsp.tex hts2a_37_lpc_pf.tex
$(DOCNAME).pdf: $(PLOT_FILES) $(DOCNAME).tex $(DOCNAME)_refs.bib
- pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex
+ pdflatex -shell-escape -file-line-error -jobname=$(JOBNAME) $(DOCNAME).tex
bibtex $(JOBNAME).aux
- pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex
- pdflatex -jobname=$(JOBNAME) $(DOCNAME).tex
+ pdflatex -shell-escape -file-line-error -jobname=$(JOBNAME) $(DOCNAME).tex
+ pdflatex -shell-escape -file-line-error -jobname=$(JOBNAME) $(DOCNAME).tex
$(PLOT_FILES):
echo $(PATH)
diff --git a/doc/codec2.tex b/doc/codec2.tex
index 27181a2..89218fa 100644
--- a/doc/codec2.tex
+++ b/doc/codec2.tex
@@ -9,14 +9,14 @@
\usepackage{catchfile}
\usepackage{siunitx}
-\CatchFileDef{\headfull}{../.git/HEAD}{}
-\StrGobbleRight{\headfull}{1}[\head]
-\StrBehind[2]{\head}{/}[\branch]
-\IfFileExists{../.git/refs/heads/\branch}{%
- \CatchFileDef{\commit}{../.git/refs/heads/\branch}{}}{%
- \newcommand{\commit}{\dots~(in \emph{packed-refs})}}
\newcommand{\gitrevision}{%
- \StrLeft{\commit}{7}%
+ \immediate\write18{git log -n1 --oneline | awk '{print $1;}' > gitrevision.txt}
+ \input{gitrevision.txt}
+}
+
+\newcommand{\branch}{%
+ \immediate\write18{git branch --show-current > gitbranch.txt}
+ \input{gitbranch.txt}
}
\title{Codec 2}