blob: c4170f095146475e784535833a9cf74ed7ecb1ba [file] [log] [blame]
echo Setting up build environment with default configuration ...
echo Using $PWD as top directory ...
# Set the PV_TOP
#
setenv PV_TOP $PWD
echo Set PV_TOP to $PV_TOP ...
# Setup environment for necessary for the
# makefiles, etc.
# Only set the VOB_BASE_DIR if it is not already set.
# In this case, set it based on the first argument if it is present
# and otherwise default to /vobs.
if (! $?VOB_BASE_DIR) then
if ($# >= 1) then
setenv VOB_BASE_DIR $1
else
setenv VOB_BASE_DIR /vobs
endif
echo Set VOB_BASE_DIR to $VOB_BASE_DIR ...
else
echo VOB_BASE_DIR already defined as $VOB_BASE_DIR ...
endif
# SDK_LOCAL is the local staging area (i.e., view private) for private
# builds and installs of the corelibs libraries. The path should be
# relative to VOB_BASE_DIR. Set to a default value if it is not set
if (! $?SDK_LOCAL) then
setenv SDK_LOCAL $PV_TOP
echo Set SDK_LOCAL to $SDK_LOCAL ...
else
echo SDK_LOCAL already defined as $SDK_LOCAL
endif
setenv PROJECT $PV_TOP
echo Set PROJECT to $PROJECT ...
setenv MK $VOB_BASE_DIR/tools_v2/build/make
echo Set MK to $MK ...
setenv CCASE_MAKE_COMPAT gnu
echo Set CCASE_MAKE_COMPAT to $CCASE_MAKE_COMPAT ...
if (! -f $MK/../bin/archtype) then
echo "Error. Cannot find archtype script $MK/../bin/archtype."
endif
set arch_bin_path = `$MK/../bin/archtype`
set extern_tools_path = $VOB_BASE_DIR/extern_tools_v2/bin/$arch_bin_path
if ( -x /icl-tools/bin/$arch_bin_path/utok ) then
set path = (`/icl-tools/bin/$arch_bin_path/utok -s \ ./$arch_bin_path $extern_tools_path $path`)
else
set path = (./$arch_bin_path $extern_tools_path $path)
endif
unset arch_bin_path
unset extern_tools_path
if ( -f ./setup.extras ) then
echo File setup.extras found, sourcing ...
source ./setup.extras
else
echo File setup.extras not found, skipping ...
endif
# Rehash
#
rehash
rehash
# Finita
#
echo
echo Environment is ready if no errors reported
echo