Skip to content

Commit 7cbc087

Browse files
committed
remove auto clone rt-thread repo part
1 parent 1be4491 commit 7cbc087

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

touch_env.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
$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"
52
$ENV_URL="https://github.com/RT-Thread/env.git"
63

74
if ($args[0] -eq "--gitee") {
85
echo "Using gitee service."
96
$DEFAULT_RTT_PACKAGE_URL="https://gitee.com/RT-Thread-Mirror/packages.git"
10-
$RTT_URL="https://gitee.com/rtthread/rt-thread.git"
117
$ENV_URL="https://gitee.com/RT-Thread-Mirror/env.git"
128
}
139

touch_env.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
#!/usr/bin/env bash
22

33
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
74
ENV_URL=https://github.com/RT-Thread/env.git
85

96
if [ $1 ] && [ $1 = --gitee ]; then
107
gitee=1
118
DEFAULT_RTT_PACKAGE_URL=https://gitee.com/RT-Thread-Mirror/packages.git
12-
RTT_URL=https://gitee.com/rtthread/rt-thread.git
139
ENV_URL=https://gitee.com/RT-Thread-Mirror/env.git
1410
fi
1511

@@ -32,13 +28,3 @@ if ! [ -d $env_dir ]; then
3228
git clone $ENV_URL $env_dir/tools/scripts --depth=1
3329
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
3430
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

0 commit comments

Comments
 (0)