Remove bin/ directory in favour of an add_path.sh script that can be sourced

Remaining file in bin/ will be moved out as part of !34
This commit is contained in:
Angus Gratton
2016-09-01 18:27:51 +10:00
parent fb87346864
commit d793d23b94
5 changed files with 19 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
# This shell snippet appends useful esp-idf tools to your PATH environment
# variable. This means you can run esp-idf tools without needing to give the
# full path.
#
# Use this script like this:
#
# source ${IDF_PATH}/add_path.sh
#
if [ -z ${IDF_PATH} ]; then
echo "IDF_PATH must be set before including this script."
else
IDF_ADD_PATHS_EXTRAS="${IDF_PATH}/components/esptool_py/:${IDF_PATH}/components/partition_table/"
export PATH="${PATH}:${IDF_ADD_PATHS_EXTRAS}"
echo "Added to PATH: ${IDF_ADD_PATHS_EXTRAS}"
fi