0028345: Data Exchange - Reading STEP model using STEPCAF crashes
[occt.git] / genconf
diff --git a/genconf b/genconf
index a90a3f5..1801833 100755 (executable)
--- a/genconf
+++ b/genconf
@@ -6,8 +6,10 @@
 # initialize environment
 aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
 if [ ! -e "${aScriptPath}/env.sh" ]; then 
-cat ${aScriptPath}/adm/templates/env.sh | sed -e '/__CASROOT__/d' > ${aScriptPath}/env.sh
+  cat ${aScriptPath}/adm/templates/env.sh | sed -e '/__CASROOT__/d' > ${aScriptPath}/env.sh
 fi
 
+if [ -e "${aScriptPath}/custom.sh" ]; then source "${aScriptPath}/custom.sh"; fi
+
 # run GUI tool
 tclsh "${aScriptPath}/adm/genconf.tcl"