Skip to content

Commit

Permalink
#2903: makefile back
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 1, 2024
1 parent f4b24bc commit 10a56da
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions paper/Makefile
Expand Up @@ -27,7 +27,7 @@ TLROOT=$$(kpsewhich -var-value TEXMFDIST)
PACKAGES=ffcode to-be-determined href-ul minted
REPO=objectionary/eo

gsed=\((if \)(shell which gsed),gsed,sed)
gsed=$(if $(shell which gsed),gsed,sed)

zip: *.tex sections/*.tex
rm -rf package
Expand All @@ -36,12 +36,12 @@ zip: *.tex sections/*.tex
cp ../eolang-paper.tex .
cp ../phigure.sty .
cp ../main.bib .
for p in \((PACKAGES); do cp \)(TLROOT)/tex/latex/$\({p}/\)${p}.sty .; done
for p in $(PACKAGES); do cp $(TLROOT)/tex/latex/$${p}/$${p}.sty .; done
cp -r ../sections .
version=$\((curl --silent -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/\)(REPO)/releases/latest | jq -r '.tag_name')
version=$$(curl --silent -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/$(REPO)/releases/latest | jq -r '.tag_name')
echo "Version is: $${version}"
\({gsed} -i "s|0\.0\.0|\)${version}|g" eolang-paper.tex
\({gsed} -i "s|REPOSITORY|\)(REPO)|g" eolang-paper.tex
${gsed} -i "s|0\.0\.0|$${version}|g" eolang-paper.tex
${gsed} -i "s|REPOSITORY|$(REPO)|g" eolang-paper.tex
pdflatex -shell-escape -halt-on-error eolang-paper.tex > /dev/null
biber eolang-paper
pdflatex -halt-on-error eolang-paper.tex > /dev/null
Expand All @@ -53,4 +53,5 @@ zip: *.tex sections/*.tex

clean:
git clean -dfX
clean -dfX

0 comments on commit 10a56da

Please sign in to comment.