Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
7 changes: 6 additions & 1 deletion touch_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ DEFAULT_RTT_PACKAGE_URL=https://github.com/RT-Thread/packages.git

env_dir=$HOME/.env
if ! [ -d $env_dir ]; then
echo 1
package_url=${RTT_PACKAGE_URL:-$DEFAULT_RTT_PACKAGE_URL}
mkdir $env_dir
mkdir $env_dir/local_pkgs
Expand All @@ -17,3 +16,9 @@ if ! [ -d $env_dir ]; then
git clone https://github.com/RT-Thread/env.git $env_dir/tools/scripts
echo 'export PATH=$HOME/.env/tools/scripts:$PATH' > $env_dir/env.sh
fi

RTT_ROOT=$HOME/rt-thread
# you can download rt-thread to another directory by changing RTT_ROOT
if ! [ -d $RTT_ROOT ]; then
git clone https://github.com/RT-Thread/rt-thread.git $RTT_ROOT
fi