From: Benjamin Mako Hill Date: Tue, 29 Jan 2013 05:29:20 +0000 (-0500) Subject: fixed some bugs and improved the quality of the code to build/extract data X-Git-Url: https://projects.mako.cc/source/beamer-mako/commitdiff_plain/e39ee174e2f26655e6e094f7703f0b38a4294909 fixed some bugs and improved the quality of the code to build/extract data --- diff --git a/Makefile b/Makefile index 1b7191d..1dd9601 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ pdf: all recode -d u8..ltex < refs-cleaned.bib > refs-processed.bib mogrify -format pdf figures/logo.svg rubber -fd $< + extract-notes $< clean: rubber -d --clean *.tex @@ -16,6 +17,7 @@ clean: rm -f refs-cleaned.bib rm -f refs-processed.bib rm -f figures/logo.pdf + rm -f *.pdfpc viewpdf: all evince *.pdf diff --git a/extract-notes b/extract-notes index 06f5836..0d11083 100755 --- a/extract-notes +++ b/extract-notes @@ -23,7 +23,7 @@ foreach $filename (@ARGV) { if ($line =~ /^\% pdfpc\:end/) { $note_record = 0; - chomp $note_text; + $note_text =~ s/^\s*(.*?)\s*$/$1/; print NOTESFILE "\#\#\# $slide_counter\n$note_text\n"; }