diff options
author | Anas Nashif <anas.nashif@intel.com> | 2016-02-12 22:24:47 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit@zephyrproject.org> | 2016-02-17 13:42:25 +0000 |
commit | 3096b5425794cd5d3443a120fbf6f9fe49c2c142 (patch) | |
tree | 452de501304accfded3d1f2728bf8d5bc965e54e /zephyr-env.sh | |
parent | a77c7d819a9a262bf47a567bac39ef4bb3e85f5c (diff) |
Use .zephyrrc for initializing common variables
The file can be used to define variables used by the SDK to avoid
having to define them everytime a session is started.
The old file names ~/zephyr-env_install.bash will still work but
it will warn about the file being renamed. We do not want to break
users who have ~/zephyr-env_install.bash in their home and depend on
it.
Change-Id: I04fcaa76854bda3dcfc1cabe75e00e95c511b10d
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'zephyr-env.sh')
-rw-r--r-- | zephyr-env.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zephyr-env.sh b/zephyr-env.sh index 62188d723..dcb0638b7 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -20,5 +20,11 @@ unset scripts_path # enable custom environment settings zephyr_answer_file=~/zephyr-env_install.bash -[ -f ${zephyr_answer_file} ] && . ${zephyr_answer_file} +[ -f ${zephyr_answer_file} ] && { + echo "Warning: Please rename ~/zephyr-env_install.bash to ~/.zephyrrc"; + . ${zephyr_answer_file}; +} +unset zephyr_answer_file +zephyr_answer_file=~/.zephyrrc +[ -f ${zephyr_answer_file} ] && . ${zephyr_answer_file}; unset zephyr_answer_file |