X-Git-Url: https://code.communitydata.science/cdsc_tex.git/blobdiff_plain/de4773b84b1195521b56eef4caf5c40d9eb64c67..141c6a211ab0eebc611ee4df61cdf61a610bf72f:/paper_template/Makefile?ds=inline diff --git a/paper_template/Makefile b/paper_template/Makefile index 1b183d1..29384c8 100644 --- a/paper_template/Makefile +++ b/paper_template/Makefile @@ -3,8 +3,12 @@ all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) pdf: all -%.pdf: %.tex - recode -d u8..ltex < refs.bib > refs-processed.bib +refs-processed.bib: + perl -p -e 's/©//' refs.bib > refs-processed.bib + perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-processed.bib |sponge refs-processed.bib + recode -d u8..ltex < refs-processed.bib | sponge refs-processed.bib + +%.pdf: %.tex refs-processed.bib rubber -fd $< clean: