Lines Matching +full:source +full:- +full:dir
4 # SPDX-License-Identifier: Apache-2.0
15 if [ -n "${ZSH_VERSION:-}" ]; then
16 dir="${(%):-%N}"
19 name=$(basename -- "$0")
22 name=$(basename -- "$0")
25 dir="${BASH_SOURCE[0]}"
26 name=$(basename -- "$0")
29 if [ "X$name" "==" "Xzephyr-env.sh" ]; then
30 echo "Source this file (do NOT execute it!) to set the Zephyr Kernel environment."
38 if uname | grep -q "MINGW"; then
40 pwd_opt="-W"
46 # identify OS source tree root directory
47 export ZEPHYR_BASE=$( builtin cd "$( dirname "$dir" )" > /dev/null && pwd ${pwd_opt})
51 if [ "$win_build" -eq 1 ]; then
55 if ! echo "${PATH}" | grep -q "${scripts_path}"; then
61 zephyr_answer_file=~/zephyr-env_install.bash
62 [ -f ${zephyr_answer_file} ] && {
63 echo "Warning: Please rename ~/zephyr-env_install.bash to ~/.zephyrrc"
68 [ -f ${zephyr_answer_file} ] && . ${zephyr_answer_file}