4 # cd /path/to/lx-office
5 # ./scripts/build_doc.sh
9 if [[ ! -d doc ]]; then
10 echo "Please run this from the installation directory."
14 dobudish=$(ls -d doc/build/dobudish* 2> /dev/null)
16 if [[ -z $dobudish ]] || [[ ! -d ${dobudish} ]]; then
17 echo "There's no dobudish directory inside doc/build."
23 base=documents/dokumentation
24 if [[ ! -d $base ]]; then
25 ./generator.sh dokumentation create book
30 custom=${base}/custom-cfg
33 cp ../../dokumentation.xml ${input}/
36 cp -R ../custom-cfg/* ${custom}/
38 ./generator.sh dokumentation pdf
39 cp ${output}/pdf/dokumentation.pdf ../../
41 ./generator.sh dokumentation html
44 cp -R ${output}/html ../../html