mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 00:26:46 +08:00
last time a full update of pdf will be done.
This commit is contained in:
parent
2589537238
commit
bf6f2d2160
14 changed files with 28 additions and 0 deletions
BIN
LICENSE.pdf
BIN
LICENSE.pdf
Binary file not shown.
BIN
README.pdf
BIN
README.pdf
Binary file not shown.
28
find_stale_pdf.bash
Executable file
28
find_stale_pdf.bash
Executable file
|
|
@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
section_2/float/notes.pdf
Normal file
BIN
section_2/float/notes.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue