1
0
Fork 0
forked from ZeusWPI/drive
drive/scripts/md_to_pdf.sh
2020-10-11 20:04:51 +02:00

8 lines
No EOL
245 B
Bash

#!/bin/sh
echo "Converting to HTML…"
for file in *.md */*.md
echo " converting $file"
pandoc $file -f markdown -t pdf -o (echo "../$file" | sed '$s/\.md$/.pdf/') -s --data-dir=./ --variable=file:(echo "$file" | sed '$s/\.md$/.pdf/')
end