diff --git a/LICENSE.pdf b/LICENSE.pdf index c62b584..15a521d 100644 Binary files a/LICENSE.pdf and b/LICENSE.pdf differ diff --git a/README.pdf b/README.pdf index 5980d52..46dea79 100644 Binary files a/README.pdf and b/README.pdf differ diff --git a/find_stale_pdf.bash b/find_stale_pdf.bash new file mode 100755 index 0000000..d770293 --- /dev/null +++ b/find_stale_pdf.bash @@ -0,0 +1,28 @@ +#!/bin/bash +file_list=`find . -print | grep -i ".md"` + +for element in $file_list +do + dir=`dirname ${element}` + cd $dir + md_name=`basename ${element} .md` + pdf_name=${md_name}.pdf + md_name=${md_name}.md + if [ ! -f $pdf_name ] + then + echo Generating missing PDF file in $dir for $md_name + pandoc $md_name -o $pdf_name + cd - > /dev/null + continue + fi + md_date=`date -r ${md_name} +%s` + pdf_date=`date -r ${pdf_name} +%s` + if [ $pdf_date -lt $md_date ]; + then + #echo Is $pdf_date greater than $md_date + echo Freshening $pdf_name in $dir + pandoc $md_name -o $pdf_name + fi + cd - > /dev/null +done + diff --git a/macros/README.pdf b/macros/README.pdf index 63d58f6..e36a917 100644 Binary files a/macros/README.pdf and b/macros/README.pdf differ diff --git a/test.bash b/make_all_pdf.bash similarity index 100% rename from test.bash rename to make_all_pdf.bash diff --git a/section_1/hello_world/README.pdf b/section_1/hello_world/README.pdf index f979946..b09d852 100644 Binary files a/section_1/hello_world/README.pdf and b/section_1/hello_world/README.pdf differ diff --git a/section_1/if/README.pdf b/section_1/if/README.pdf index 731eb7b..3c3a3dd 100644 Binary files a/section_1/if/README.pdf and b/section_1/if/README.pdf differ diff --git a/section_1/recursion/README.pdf b/section_1/recursion/README.pdf index dbe8388..42041e4 100644 Binary files a/section_1/recursion/README.pdf and b/section_1/recursion/README.pdf differ diff --git a/section_1/regs/README.pdf b/section_1/regs/README.pdf index 9ac76f7..fc02c96 100644 Binary files a/section_1/regs/README.pdf and b/section_1/regs/README.pdf differ diff --git a/section_1/regs/backup.pdf b/section_1/regs/backup.pdf index 80c8477..111235d 100644 Binary files a/section_1/regs/backup.pdf and b/section_1/regs/backup.pdf differ diff --git a/section_1/regs/ldr2.pdf b/section_1/regs/ldr2.pdf index 5e70eaa..cd18b68 100644 Binary files a/section_1/regs/ldr2.pdf and b/section_1/regs/ldr2.pdf differ diff --git a/section_1/regs/regvar.pdf b/section_1/regs/regvar.pdf index 8f67c4c..175def5 100644 Binary files a/section_1/regs/regvar.pdf and b/section_1/regs/regvar.pdf differ diff --git a/section_1/regs/spare.pdf b/section_1/regs/spare.pdf index deeae64..94996ef 100644 Binary files a/section_1/regs/spare.pdf and b/section_1/regs/spare.pdf differ diff --git a/section_2/float/notes.pdf b/section_2/float/notes.pdf new file mode 100644 index 0000000..acb8ff9 Binary files /dev/null and b/section_2/float/notes.pdf differ