Initial commit

This commit is contained in:
2025-10-03 13:15:44 -07:00
commit 75fda5ea1f
6 changed files with 95 additions and 0 deletions

32
convert.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
# 2024-03-06 Hyperling
# PanDoc Usage: https://pandoc.org/MANUAL.html#general-writer-options
date
ebook="ebook.pdf"
if [[ -e $ebook ]]; then
echo -n "Old: "
du -h $ebook
rm -v $ebook
fi
cp ebook.md /tmp/
sed -i "s/{REVISION_DATE}/`date +'%Y-%m-%d'`/g" /tmp/ebook.md
pandoc /tmp/ebook.md \
-s \
-o $ebook
status=$?
pdfbook2 $ebook
echo "Completed with status '$status'."
echo -n "New: "
du -h $ebook
date
exit $status