From e39ee174e2f26655e6e094f7703f0b38a4294909 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Tue, 29 Jan 2013 00:29:20 -0500 Subject: [PATCH] fixed some bugs and improved the quality of the code to build/extract data --- Makefile | 2 ++ extract-notes | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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"; } -- 2.39.5