From fc613f1b2616baa3771d8ced10d15cd45168e3dd Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 9 Jan 2014 14:42:57 -0800 Subject: [PATCH] added a perl script to clean out some common broken encoding stuff --- paper_template/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paper_template/Makefile b/paper_template/Makefile index b219b72..a831bb3 100644 --- a/paper_template/Makefile +++ b/paper_template/Makefile @@ -1,10 +1,12 @@ #!/usr/bin/make -all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) +#all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) +all: project_description.pdf references.pdf pdf: all %.pdf: %.tex perl -p -e 's/©//' refs.bib > refs-cleaned.bib + perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-cleaned.bib |sponge refs-cleaned.bib recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib rubber -fd $< -- 2.39.5