Publish Version 1.0 (#3)
This commit is contained in:
27
convert.sh
Executable file
27
convert.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# 2024-03-06 Hyperling
|
||||
# PanDoc Usage: https://pandoc.org/MANUAL.html#general-writer-options
|
||||
|
||||
date
|
||||
|
||||
ebook="HyperlingsHealthProtocol.pdf"
|
||||
|
||||
if [[ -e $ebook ]]; then
|
||||
echo -n "Old: "
|
||||
du -h $ebook
|
||||
rm -v $ebook
|
||||
fi
|
||||
|
||||
pandoc ebook.md \
|
||||
-s -N --toc --toc-depth=3 \
|
||||
-o $ebook
|
||||
status=$?
|
||||
|
||||
echo "Completed with status '$status'."
|
||||
|
||||
echo -n "New: "
|
||||
du -h $ebook
|
||||
|
||||
date
|
||||
|
||||
exit $status
|
Reference in New Issue
Block a user