1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-12 19:10:27 +03:00

Manual-Generation (*.md -> pdf) via Gimli

This commit is contained in:
pulsar256 2014-09-26 19:37:28 +02:00
parent efdadcf48a
commit 67728b1581
5 changed files with 11 additions and 6 deletions

View file

@ -1,11 +1,16 @@
#!/bin/bash
filename=Manual
if which gimli >/dev/null; then
find docs -name "*.md" -exec cat {} > documentation.md \;
gimli -f documentation.md
mv documentation.pdf docs
rm documentation.md
echo "Building ${filename}.pdf"
find docs -name "*.md" -exec cat {} > ${filename}.md \;
mv ${filename}.md docs
pushd . >/dev/null
cd docs
rm -f ${filename}.pdf
gimli -f ${filename}.md
rm ${filename}.md
popd >/dev/null
else
echo -e "\nFAILED"
echo "Install Gimli to build the PDF documentation"