| 1 | #!/bin/bash |
| 2 | |
| 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 |
| 5 | |
| 6 | anArgs=$* |
| 7 | anOldPath="$PATH" |
| 8 | anOldLd="$LD_LIBRARY_PATH" |
| 9 | anOldDyLd="$DYLD_LIBRARY_PATH" |
| 10 | |
| 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 |
| 14 | |
| 15 | tclsh "${aScriptPath}/adm/start.tcl" gendoc $anArgs |
| 16 | |
| 17 | export PATH="$anOldPath" |
| 18 | export LD_LIBRARY_PATH="$anOldLd" |
| 19 | export DYLD_LIBRARY_PATH="$anOldDyLd" |