]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/build_doc.sh
restart apache2 in postinst
[mfinanz.git] / scripts / build_doc.sh
index 2efa9b991e2370dca4f767fb2b4302a42b4f86dc..0c4f48ef523639bd4f960ba2f945c7f6f75c1db7 100755 (executable)
@@ -13,6 +13,13 @@ fi
 
 doc=${PWD}/doc
 
+if [[ ! -d doc/build/dobudish ]]; then
+  echo "  ERROR: looks like 'doc/build/dobudish' DIR is missing"
+  echo "   - You need to get 'dobudish-nojre-1.1.4.zip' from https://code.google.com/archive/p/dobudish/downloads"
+  echo "   - Download and unpack ( unzip dobudish-nojre-1.1.4.zip -d doc/build )"
+  echo "   - create dobudish symlink ( ln -sf dobudish-1.1.4 doc/build/dobudish )"
+fi
+
 html=1
 pdf=1
 images=1
@@ -36,14 +43,7 @@ if [[ ! -z $1 ]] ; then
   done
 fi
 
-dobudish=$(ls -d doc/build/dobudish* 2> /dev/null)
-
-if [[ -z $dobudish ]] || [[ ! -d ${dobudish} ]]; then
-  echo "There's no dobudish directory inside doc/build OR more than one file / dir starting with dobudish (hint: zip file downloaded there?)."
-  exit 1
-fi
-
-cd ${dobudish}
+cd doc/build/dobudish
 
 base=documents/dokumentation
 if [[ ! -d $base ]]; then