Skip to content
Snippets Groups Projects
Commit a45e9013 authored by Luke Naylor's avatar Luke Naylor
Browse files

Introduce 2 step CI compilation with soft link manipulation

parent 2408cdee
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,6 @@ sagetex.sty
sage-plots-for-main.tex/
dependency-newcommands.tex
dependency-packages.tex
tilt.rs
\ No newline at end of file
tilt.rs
appendix.tex
......@@ -10,8 +10,9 @@ build:
- source /root/.bashrc
- sage -pip install "pseudowalls==0.0.3" --extra-index-url https://gitlab.com/api/v4/projects/43962374/packages/pypi/simple
- make tilt.rs
- make blank-appendix
- latexmk -use-make
- sed -i -e '1s/^/\\def\\notebookappendix{} /' main.tex
- make nb-appendix
- latexmk -use-make
artifacts:
paths:
......
......@@ -9,14 +9,16 @@ BIBFILES = $(addsuffix /references.bib, ${CHAPTERDIRS})
SAGESCRIPT = main.sagetex.sage
main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} main.sagetex.sout tilt.rs notebook_tex
SAGEARTIFACT = main.sagetex.sout
main.pdf: ${TEXFILES} ${BIBFILES} ${PREAMBLEFILES} ${SAGEARTIFACT} tilt.rs notebook_tex
latexmk || echo this fails but seems to produce pdf correctly
main.sagetex.sout: ${SAGESCRIPT} chapter_py_libs
${SAGEARTIFACT}: ${SAGESCRIPT} chapter_py_libs
PYTHONPATH=`echo $(CHAPTERDIRS) | sed 's/ \+/:/g'` sage ${SAGESCRIPT}
${SAGESCRIPT}: ${TEXFILES}
latexmk \$max_repeat=<1> || echo this is meant to fail
latexmk || echo this is meant to fail
# seems to be a bug with sagetex, only works if patched:
sed -i -e 's;version_check=)$$;version_check=True);' $@
......@@ -40,9 +42,19 @@ chapter_py_libs:
$(MAKE) -C $$dir notebook_py_libs; \
done
# SYMBOLIC LINKS
tilt.rs:
ln -s max-destabilizer-rank/tilt.rs/ tilt.rs
blank-appendix:
rm appendix.tex || echo appendix non-existent
ln -s /dev/null appendix.tex
nb-appendix:
rm appendix.tex || echo appendix non-existent
ln -s notebook-appendix.tex appendix.tex
# TEX FILES FROM NOTEBOOKS
define NOTEBOOK_TO_TEX_RULE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment