diff --git a/install_linux.sh b/install_ubuntu.sh similarity index 100% rename from install_linux.sh rename to install_ubuntu.sh diff --git a/touch_env.sh b/touch_env.sh index 06dc864d..01b243ba 100755 --- a/touch_env.sh +++ b/touch_env.sh @@ -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 @@ -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