Print status when pdf file has been generated.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 21 Mar 2017 08:27:12 +0000 (09:27 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Wed, 22 Mar 2017 10:10:06 +0000 (11:10 +0100)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
gendocs.sh

index 078fb95..a0f6e5c 100755 (executable)
@@ -57,7 +57,9 @@ if [ "$DO_ACTION" = "pdf" -o "$DO_ACTION" = "serve" ]; then
     [ "$?" = "1" ] && { echo "You must install calibre first, using: 'sudo apt install calibre' or refer to https://calibre-ebook.com/download"; exit 1; }
 
     if [ "$DO_ACTION" = "pdf" ]; then
-        $DRY $GITBOOK pdf $ROOTDIR $OUT_DIR/LowLevelCanBinding_Guide.pdf $DEBUG_FLAG
+           OUTFILE=$OUT_DIR/LowLevelCanBinding_Guide.pdf
+        $DRY $GITBOOK pdf $ROOTDIR $OUTFILE $DEBUG_FLAG
+        [ "$?" = "0" ] && echo "PDF has been successfully generated in $OUTFILE"
     else
         $DRY $GITBOOK serve $DEBUG_FLAG
     fi