Add ccutil back into the script since it catches more errors
This commit is contained in:
parent
9ea3e3870b
commit
3d69e11dbc
1 changed files with 18 additions and 2 deletions
|
@ -33,6 +33,9 @@ if [ ! -d target ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove the html and build directories and then recreate the html/images/ directory
|
# Remove the html and build directories and then recreate the html/images/ directory
|
||||||
|
if [ -d target/html ]; then
|
||||||
|
- rm -r target/html/
|
||||||
|
fi
|
||||||
if [ -d target/html ]; then
|
if [ -d target/html ]; then
|
||||||
rm -r target/html/
|
rm -r target/html/
|
||||||
fi
|
fi
|
||||||
|
@ -45,9 +48,22 @@ echo "********************************************"
|
||||||
echo " Building $CURRENT_GUIDE "
|
echo " Building $CURRENT_GUIDE "
|
||||||
echo "********************************************"
|
echo "********************************************"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Building an asciidoctor version of the $CURRENT_GUIDE"
|
echo "Building an asciidoctor version of the guide"
|
||||||
asciidoctor -t -dbook -a toc -o target/html/$CURRENT_GUIDE.html target/master.adoc
|
asciidoctor -t -dbook -a toc -o target/html/$CURRENT_GUIDE.html target/master.adoc
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Building a ccutil version of the guide"
|
||||||
|
ccutil compile --lang en_US --format html-single --main-file target/master.adoc
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "View the guide here: " file://$CURRENT_DIRECTORY/target/html/$CURRENT_GUIDE.html
|
echo "View the asciidoctor build here: " file://$CURRENT_DIRECTORY/target/html/$CURRENT_GUIDE.html
|
||||||
|
|
||||||
|
if [ -d $CURRENT_DIRECTORY/build/tmp/en-US/html-single/ ]; then
|
||||||
|
echo "View the ccutil build here: " file://$CURRENT_DIRECTORY/build/tmp/en-US/html-single/index.html
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo -e "${RED}Build using ccutil failed!"
|
||||||
|
echo -e "${BLACK}See the log above for details."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue