File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 1
1
$DEFAULT_RTT_PACKAGE_URL = " https://github.com/RT-Thread/packages.git"
2
- # you can change the package url by defining RTT_PACKAGE_URL, ex:
3
- # export RTT_PACKAGE_URL=https://github.com/Varanda-Labs/packages.git
4
- $RTT_URL = " https://github.com/RT-Thread/rt-thread.git"
5
2
$ENV_URL = " https://github.com/RT-Thread/env.git"
6
3
7
4
if ($args [0 ] -eq " --gitee" ) {
8
5
echo " Using gitee service."
9
6
$DEFAULT_RTT_PACKAGE_URL = " https://gitee.com/RT-Thread-Mirror/packages.git"
10
- $RTT_URL = " https://gitee.com/rtthread/rt-thread.git"
11
7
$ENV_URL = " https://gitee.com/RT-Thread-Mirror/env.git"
12
8
}
13
9
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
DEFAULT_RTT_PACKAGE_URL=https://github.com/RT-Thread/packages.git
4
- # you can change the package url by defining RTT_PACKAGE_URL, ex:
5
- # export RTT_PACKAGE_URL=https://github.com/Varanda-Labs/packages.git
6
- RTT_URL=https://github.com/RT-Thread/rt-thread.git
7
4
ENV_URL=https://github.com/RT-Thread/env.git
8
5
9
6
if [ $1 ] && [ $1 = --gitee ]; then
10
7
gitee=1
11
8
DEFAULT_RTT_PACKAGE_URL=https://gitee.com/RT-Thread-Mirror/packages.git
12
- RTT_URL=https://gitee.com/rtthread/rt-thread.git
13
9
ENV_URL=https://gitee.com/RT-Thread-Mirror/env.git
14
10
fi
15
11
@@ -32,13 +28,3 @@ if ! [ -d $env_dir ]; then
32
28
git clone $ENV_URL $env_dir /tools/scripts --depth=1
33
29
echo -e ' export PATH=`python3 -m site --user-base`/bin:$HOME/.env/tools/scripts:$PATH\nexport RTT_EXEC_PATH=/usr/bin' > $env_dir /env.sh
34
30
fi
35
-
36
- RTT_ROOT=$HOME /rt-thread
37
- # you can download rt-thread to another directory by changing RTT_ROOT
38
- if ! [ -d $RTT_ROOT ]; then
39
- git clone $RTT_URL $RTT_ROOT --depth=1
40
- if [ $gitee ]; then
41
- cd $RTT_ROOT
42
- git checkout master
43
- fi
44
- fi
You can’t perform that action at this time.
0 commit comments