From 182e1042858ac05cc9975ab1d84bbd33a3d933e5 Mon Sep 17 00:00:00 2001 From: tangzz98 Date: Tue, 8 Nov 2022 14:36:23 -0500 Subject: [PATCH] Rename install_linux.sh. Clone rt-thread. --- install_linux.sh => install_ubuntu.sh | 0 touch_env.sh | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) rename install_linux.sh => install_ubuntu.sh (100%) 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