Changeset 3197 for palm/trunk
- Timestamp:
- Aug 14, 2018 3:10:43 PM (6 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/generate_documentation
r2718 r3197 38 38 # generate_documentation - script for generating the PALM code documentation 39 39 #--------------------------------------------------------------------------------# 40 SOURCE="${BASH_SOURCE[0]}" 41 while [ -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 45 done 46 SCRIPT_LOCATION="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 47 48 working_dir=$(readlink -f "${SCRIPT_LOCATION}/../../") 40 49 41 50 echo "Generating PALM source code documentation..." 42 51 43 # Checking if the environment variable PALM_BIN is set.44 if [[ -z $PALM_BIN ]]; then45 echo "PALM_BIN is not set."46 exit 147 fi48 52 49 doc_dir=$ PALM_BIN/../../documentation53 doc_dir=$working_dir/documentation 50 54 51 55 # Checking for doxygen … … 59 63 # Generating HTML documentation 60 64 echo "found doxygen. Continuing..." 61 cd $ PALM_BIN/../DOC65 cd $SCRIPT_LOCATION 62 66 doxygen palm2doxygen.config 63 67 if [[ $? -ne 0 ]];then
Note: See TracChangeset
for help on using the changeset viewer.