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."
 
  17 if [[ ! -z $1 ]] ; then
 
  20   while [[ ! -z $1 ]] ; do
 
  25         echo "Unknown parameter $1"
 
  34 dobudish=$(ls -d doc/build/dobudish* 2> /dev/null)
 
  36 if [[ -z $dobudish ]] || [[ ! -d ${dobudish} ]]; then
 
  37   echo "There's no dobudish directory inside doc/build."
 
  43 base=documents/dokumentation
 
  44 if [[ ! -d $base ]]; then
 
  45   ./generator.sh dokumentation create book
 
  50 custom=${base}/custom-cfg
 
  52 rm -rf ${input} ${custom}
 
  53 mkdir ${input} ${input}/copy_to_output ${custom}
 
  55 cp ../../dokumentation.xml ${input}/
 
  56 cp -R ../../images ${input}/copy_to_output/
 
  57 cp -R ../custom-cfg/* ${custom}/
 
  59 if [[ $pdf = 1 ]] ; then
 
  60   ./generator.sh dokumentation pdf
 
  61   cp ${output}/pdf/dokumentation.pdf ../../
 
  64 if [[ $html = 1 ]]; then
 
  65   ./generator.sh dokumentation html
 
  68   cp -R ${output}/html ../../