3 # Helper script to run generation of CBP/XCode projects on Linux / OS X.
4 # Running it requires that Tcl should be in the PATH
7 anOldLd="$LD_LIBRARY_PATH"
8 anOldDyLd="$DYLD_LIBRARY_PATH"
10 # go to the script directory
11 aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
19 if [ "$aTarget" == "" ]; then
21 if [ "$aSystem" == "Darwin" ]; then aTarget="xcd"; fi;
24 if [ ! -e "${aScriptPath}/custom.sh" ]; then
25 tclsh "${aScriptPath}/adm/genconf.tcl"
28 if [ ! -e "${aScriptPath}/custom.sh" ]; then
29 echo custom.sh is not created. Run the script again and generate custom.sh
32 source "${aScriptPath}/custom.sh"
34 if [ -e "${aScriptPath}/env.sh" ]; then source "${aScriptPath}/env.sh"; fi
36 tclsh "${aScriptPath}/adm/start.tcl" genproj -path="${aScriptPath}" -target=${aTarget} $anOpt2 $anOpt3 $anOpt4 $anOpt5
38 export PATH="$anOldPath"
39 export LD_LIBRARY_PATH="$anOldLd"
40 export DYLD_LIBRARY_PATH="$anOldDyLd"