mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-27 09:11:49 +00:00
Create PDF from file in output dir when building all from what's inside lib/documentation.
This commit is contained in:
parent
8c5a86e7b1
commit
156d66f87d
1 changed files with 11 additions and 0 deletions
11
build-all.sh
11
build-all.sh
|
@ -18,6 +18,13 @@ from=0
|
|||
RELEASE_LIST=("trusty" "xenial" "wheezy" "jessie")
|
||||
BRANCH_LIST=("default" "next" "dev")
|
||||
|
||||
# add dependencies for converting .md to .pdf
|
||||
if [[ ! -f /etc/apt/sources.list.d/nodesource.list ]]; then
|
||||
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
||||
apt-get install -y libfontconfig1 nodejs
|
||||
npm install -g markdown-pdf
|
||||
fi
|
||||
|
||||
create_images_list()
|
||||
{
|
||||
for board in $SRC/lib/config/boards/*.conf; do
|
||||
|
@ -93,6 +100,10 @@ for line in "${buildlist[@]}"; do
|
|||
done
|
||||
echo -e "\n${#buildlist[@]} total\n"
|
||||
|
||||
# create PDF from files inside lib/documentation
|
||||
temprevision=$(cat $SRC/lib/configuration.sh | grep REVISION | grep -o '".*"' | sed 's/"//g' | cut -f1 -d"$")
|
||||
markdown-pdf $SRC/lib/documentation/*.md -o "$DEST/images/Armbian_"$temprevision"_documentations.pdf"
|
||||
|
||||
[[ $BUILD_ALL == demo ]] && exit 0
|
||||
|
||||
buildall_start=`date +%s`
|
||||
|
|
Loading…
Add table
Reference in a new issue