forked from dealii/publication-list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (29 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
latex: Makefile
cd offline && pdflatex -interaction=nonstopmode publication_list.tex || true
cd offline && biber publication_list
cd offline && pdflatex -interaction=nonstopmode publication_list.tex || true
cd offline && pdflatex -interaction=nonstopmode publication_list.tex
publications.html: Makefile
rm -rf temp/ publications.html
mkdir temp
cat publications-????.bib >temp/aspect.bib
cp jabref-template/* temp/
docker run --rm -v "$(PWD)/temp:/home/bob/source" tjhei/dealii-java-jabref
cp temp/output.html output.html
rm -rf temp/
# remove jabref strings before calling bibtool to suppress warnings
sort: Makefile
@if ! command -v bibtool > /dev/null ; then \
echo "ERROR. Install bibtool to use this feature." >&2 ; \
echo "Consult the README for instructions:" >&2 ; \
echo " https://github.com/dealii/publication-list#installing-bibtool" >&2 ; \
exit 1 ; \
fi ; \
for f in publications-*.bib ; do \
sed -i 's/% Encoding: US-ASCII//' $$f ; \
bibtool -r bibtool.rsc -i ./$$f -o ./$$f || exit 1 ; \
sed -i '1s/^/% Encoding: US-ASCII\n/' $$f ; \
sed -i '$$s/$$/\n\n@Comment{jabref-meta: databaseType:bibtex;}/' $$f ; \
done
# for now always force a rebuild:
.PHONY: publications.html latex