3 # Helper script to run generation of OCCT documentation on Linux.
4 # Running it requires that Tcl, Doxygen, and MikTex (for PDF generation) should be in the PATH
8 anOldLd="$LD_LIBRARY_PATH"
9 anOldDyLd="$DYLD_LIBRARY_PATH"
11 # go to the script directory
12 aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
13 if [ -e "${aScriptPath}/env.sh" ]; then source "${aScriptPath}/env.sh"; fi
15 tclsh "${aScriptPath}/adm/start.tcl" gendoc $anArgs
17 export PATH="$anOldPath"
18 export LD_LIBRARY_PATH="$anOldLd"
19 export DYLD_LIBRARY_PATH="$anOldDyLd"