Changeset 3197


Ignore:
Timestamp:
Aug 14, 2018 3:10:43 PM (6 years ago)
Author:
knoop
Message:

Bugfix: corrected name of file "palm2doxygen.config"

Location:
palm/trunk/SCRIPTS
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/generate_documentation

    r2718 r3197  
    3838# generate_documentation - script for generating the PALM code documentation
    3939#--------------------------------------------------------------------------------#
     40SOURCE="${BASH_SOURCE[0]}"
     41while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
     42  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
     43  SOURCE="$(readlink "$SOURCE")"
     44  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
     45done
     46SCRIPT_LOCATION="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
     47
     48working_dir=$(readlink -f "${SCRIPT_LOCATION}/../../")
    4049
    4150echo "Generating PALM source code documentation..."
    4251
    43 # Checking if the environment variable PALM_BIN is set.
    44 if [[ -z $PALM_BIN ]]; then
    45    echo "PALM_BIN is not set."
    46    exit 1
    47 fi
    4852
    49 doc_dir=$PALM_BIN/../../documentation
     53doc_dir=$working_dir/documentation
    5054
    5155# Checking for doxygen
     
    5963   # Generating HTML documentation
    6064   echo "found doxygen. Continuing..."
    61    cd $PALM_BIN/../DOC
     65   cd $SCRIPT_LOCATION
    6266   doxygen palm2doxygen.config
    6367   if [[ $? -ne 0 ]];then
Note: See TracChangeset for help on using the changeset viewer.