17
0

added a perl script to clean out some common broken encoding stuff

This commit is contained in:
Benjamin Mako Hill 2014-01-09 14:42:57 -08:00
parent 8cbbd2d3b7
commit fc613f1b26

View File

@ -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 $<