mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-14 05:07:45 +08:00
73ec4a59da
Update documentation paths and improve generation instructions
20 lines
626 B
Bash
20 lines
626 B
Bash
#!/bin/bash
|
|
|
|
# Helper script to run generation of OCCT documentation on Linux.
|
|
# Running it requires that Tcl, Doxygen, and MikTex (for PDF generation) should be in the PATH
|
|
|
|
anArgs=$*
|
|
anOldPath="$PATH"
|
|
anOldLd="$LD_LIBRARY_PATH"
|
|
anOldDyLd="$DYLD_LIBRARY_PATH"
|
|
|
|
# go to the script directory
|
|
aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
|
|
if [ -e "${aScriptPath}/../env.sh" ]; then source "${aScriptPath}/../env.sh"; fi
|
|
|
|
tclsh "${aScriptPath}/start.tcl" gendoc $anArgs
|
|
|
|
export PATH="$anOldPath"
|
|
export LD_LIBRARY_PATH="$anOldLd"
|
|
export DYLD_LIBRARY_PATH="$anOldDyLd"
|