Ignore:
Timestamp:
Nov 10, 2015 11:32:13 AM (9 years ago)
Author:
knoop
Message:

Bugfix for the source code documentation generation script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/generate_documentation

    r1714 r1715  
    3737fi
    3838
     39doc_dir=$PALM_BIN/../../documentation
     40
    3941# Checking for doxygen
    4042if type -t doxygen; then
    4143
    4244   # Removing old documentation
    43    if [[ -d $PALM_BIN/../../documentation ]];then
     45   if [[ -d $doc_dir ]];then
    4446      echo "Remove old documentation"
    45       rm -r $PALM_BIN/../../documentation
     47      rm -r $doc_dir
    4648   fi
    4749   # Generating HTML documentation
     
    5355      exit 1
    5456   fi
    55    cd $PALM_BIN/../../documentation
     57   cd $doc_dir
     58   doc_dir=$(pwd)
    5659   ln -s $(pwd)/html/index.html PALM_doc.html
    5760   echo "HTML source code documentation generated."
     
    6164   
    6265      # Generating PDF documentation
    63       cd $PALM_BIN/../../documentation/latex
     66      cd $doc_dir/latex
    6467      make pdf
    65       cd $PALM_BIN/../../documentation
     68      cd $doc_dir
    6669      ln -s $(pwd)/latex/refman.pdf PALM_doc.pdf
    6770      echo "PDF source code documentation generated."
     
    7881fi
    7982
    80 echo "PALM source code documentation generated."
    81 echo "You will find ."
     83echo "The PALM source code documentation is located in: $doc_dir"
     84echo "Done."
Note: See TracChangeset for help on using the changeset viewer.