-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·42 lines (36 loc) · 1.7 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
cd `dirname $0`
git pull
#
cd datasheet_en
# https://www.wch-ic.com/downloads/CH32V002DS0_PDF.html
curl -z CH32V002DS0.PDF -o CH32V002DS0.PDF https://www.wch-ic.com/downloads/file/397.html
# https://www.wch-ic.com/downloads/CH32V004DS0_PDF.html
curl -z CH32V004DS0.PDF -o CH32V004DS0.PDF https://www.wch-ic.com/downloads/file/398.html
# https://www.wch-ic.com/downloads/CH32V006DS0_PDF.html
curl -z CH32V006DS0.PDF -o CH32V006DS0.PDF https://www.wch-ic.com/downloads/file/396.html
# https://www.wch-ic.com/downloads/CH32V00XRM_PDF.html
curl -z CH32V00XRM.PDF -o CH32V00XRM.PDF https://www.wch-ic.com/downloads/file/399.html
# https://www.wch-ic.com/downloads/CH32V006DS0_PDF.html
curl -z CH32V007DS0.PDF -o CH32V007DS0.PDF https://www.wch-ic.com/downloads/file/405.html
cd ..
#
cd datasheet_zh
# https://www.wch.cn/downloads/CH32V002DS0_PDF.html
curl -z CH32V002DS0.PDF -o CH32V002DS0.PDF https://www.wch.cn/downloads/file/473.html
# https://www.wch.cn/downloads/CH32V004DS0_PDF.html
curl -z CH32V004DS0.PDF -o CH32V004DS0.PDF https://www.wch.cn/downloads/file/474.html
# https://www.wch.cn/downloads/CH32V006DS0_PDF.html
curl -z CH32V006DS0.PDF -o CH32V006DS0.PDF https://www.wch.cn/downloads/file/475.html
# https://www.wch.cn/downloads/CH32V00XRM_PDF.html
curl -z CH32V00XRM.PDF -o CH32V00XRM.PDF https://www.wch.cn/downloads/file/472.html
# https://www.wch.cn/downloads/CH32V007DS0_PDF.html
curl -z CH32V007DS0.PDF -o CH32V007DS0.PDF https://www.wch.cn/downloads/file/476.html
cd ..
# https://www.wch.cn/downloads/CH32V006EVT_ZIP.html
curl -z CH32V006EVT.ZIP -o CH32V006EVT.ZIP https://www.wch.cn/downloads/file/477.html
rm -rfv EVT
unzip -O GB2312 *.ZIP
git add . --all
git commit -m "update"
git push origin main