1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-12 19:10:27 +03:00
inav/build_docs.sh
2014-09-26 19:37:28 +02:00

23 lines
429 B
Bash
Executable file

#!/bin/bash
filename=Manual
if which gimli >/dev/null; then
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"
echo -e "https://github.com/walle/gimli\n"
exit 1
fi