Skip to content

Commit

Permalink
auto_build: Add clarifying messages
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Jul 13, 2015
1 parent d397610 commit 077a0f0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions auto_build/launch_master.sh
Expand Up @@ -241,7 +241,11 @@ overallStatus="Success"
# dist-add/asp_book.pdf. Need to reduce its size.
# On the machine the doc was generated gs creates
# non-searcheable pdfs, so need to reduce the size here.
if [ ! -f "dist-add/asp_book.pdf" ]; then overallStatus="Fail"; fi
if [ ! -f "dist-add/asp_book.pdf" ]; then
echo "Could not find the documentation: dist-add/asp_book.pdf"
overallStatus="Fail";
fi

if [ "$resumeRun" -eq 0 ]; then
gs -dUseCIEColor -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer \
-dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100 \
Expand All @@ -250,7 +254,10 @@ if [ "$resumeRun" -eq 0 ]; then
-dColorImageDownsampleType=/Bicubic -dColorImageResolution=100 \
-dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=100 \
-sOutputFile=output.pdf dist-add/asp_book.pdf
if [ "$?" -ne 0 ]; then overallStatus="Fail"; fi
if [ "$?" -ne 0 ]; then
echo "Could not reduce the size of the documentation"
overallStatus="Fail"
fi
mv -fv output.pdf dist-add/asp_book.pdf
fi

Expand All @@ -265,6 +272,7 @@ for buildMachine in $buildMachines; do
done
if [ "$version" = "" ]; then
version="None" # A non-empty string
echo "Could not determine the ASP version"
overallStatus="Fail"
fi

Expand Down

0 comments on commit 077a0f0

Please sign in to comment.