]> OCCT Git - occt-copy.git/commitdiff
Copy env.bat file from adm/templates
authorbugmaster <bugmaster@opencascade.com>
Tue, 24 Nov 2015 12:25:47 +0000 (15:25 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 24 Nov 2015 13:11:22 +0000 (16:11 +0300)
genproj.bat
genproj.sh

index 0610af624d7b402f8ace09dddff5582f740c85f6..79eec0e86ef3aaf7da73119fec5c06ceea38e2aa 100644 (file)
@@ -7,6 +7,8 @@ SET "OLD_PATH=%PATH%"
 
 if exist "%~dp0env.bat" (
   call "%~dp0env.bat"
+) else (
+   type "%~dp0adm\templates\env.bat" | findstr /i /v "__CASROOT__" > "%~dp0env.bat"
 )
 
 set "TCL_EXEC=tclsh.exe"
index 91576ca24a32f6e80e32fbe1082f6c4cdc91e53d..2800bde89879253a8885da03e310f9bef2ec60f1 100755 (executable)
@@ -9,6 +9,9 @@ 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 
+cat ${aScriptPath}/adm/templates/env.sh | sed -e '/__CASROOT__/d' > ${aScriptPath}/env.sh
+fi
 
 aSystem=`uname -s`
 aTarget="$1"