]> projects.mako.cc - beamer-mako/commitdiff
fixed some bugs and improved the quality of the code to build/extract data
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 29 Jan 2013 05:29:20 +0000 (00:29 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 29 Jan 2013 05:29:20 +0000 (00:29 -0500)
Makefile
extract-notes

index 1b7191de523ee1b9ef5fb1a14a041b67b0d1e09a..1dd9601a295ae2415519b64533ff65ba8ac740f6 100644 (file)
--- 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 $<
        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
 
 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 refs-cleaned.bib
        rm -f refs-processed.bib
        rm -f figures/logo.pdf
+       rm -f *.pdfpc
 
 viewpdf: all
        evince *.pdf
 
 viewpdf: all
        evince *.pdf
index 06f58366fbdf2dda206aa7896a748d53a35ce511..0d11083bf0d47acc99ec401f4c313e0acfab3f5e 100755 (executable)
@@ -23,7 +23,7 @@ foreach $filename (@ARGV) {
         
         if ($line =~ /^\% pdfpc\:end/) {
             $note_record = 0;
         
         if ($line =~ /^\% pdfpc\:end/) {
             $note_record = 0;
-            chomp $note_text;
+            $note_text =~ s/^\s*(.*?)\s*$/$1/;
             print NOTESFILE "\#\#\# $slide_counter\n$note_text\n";
         }
         
             print NOTESFILE "\#\#\# $slide_counter\n$note_text\n";
         }
         

Benjamin Mako Hill || Want to submit a patch?