buildDocExports : Added export doc dir check
authorBenjamin Renard <brenard@aconit.easter-eggs.fr>
Fri, 13 Nov 2009 17:19:30 +0000 (18:19 +0100)
committerBenjamin Renard <brenard@aconit.easter-eggs.fr>
Fri, 13 Nov 2009 17:19:30 +0000 (18:19 +0100)
buildDocExports.sh

index df6b1af..ca30da5 100755 (executable)
@@ -18,6 +18,12 @@ then
     exit 0
 fi
 
+if [ ! -d "$EXPORT_DOC_DIR" ]
+then
+    echo "Error : Export directory $EXPORT_DOC_DIR does not exist !"
+    exit 2
+fi
+
 DOC_DIR=$ROOT_DIR/doc
 TMP_DIR=`mktemp -d`
 ERROR=0