0030395: DRAW bop: Some sub-shapes of some of the argument become connected through...
[occt.git] / genconf
1 #!/bin/bash
2
3 # Helper script to configure environment for genproj tool.
4 # Running it requires that Tcl should be in the PATH
5
6 # initialize environment
7 aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
8 if [ ! -e "${aScriptPath}/env.sh" ]; then 
9   cat ${aScriptPath}/adm/templates/env.sh | sed -e '/__CASROOT__/d' > ${aScriptPath}/env.sh
10 fi
11
12 if [ -e "${aScriptPath}/custom.sh" ]; then source "${aScriptPath}/custom.sh"; fi
13
14 # run GUI tool
15 tclsh "${aScriptPath}/adm/genconf.tcl"