-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·36 lines (30 loc) · 1.45 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
#!/bin/bash
cd `dirname $0`
git pull
# https://www.wch-ic.com/products/CH32V303.html
# https://www.wch-ic.com/products/CH32V307.html
cd datasheet_en
# https://www.wch-ic.com/downloads/CH32V20x_30xDS0_PDF.html
curl -z CH32V20x_30xDS0.PDF -o CH32V20x_30xDS0.PDF https://www.wch-ic.com/downloads/file/325.html
# https://www.wch-ic.com/downloads/CH32V307DS0_PDF.html
#curl -z CH32V307DS0.PDF -o CH32V307DS0.PDF https://www.wch-ic.com/downloads/file/356.html #(skip) Same file as CH32V20x_30xDS0.PDF
# https://www.wch-ic.com/downloads/CH32FV2x_V3xRM_PDF.html
curl -z CH32FV2x_V3xRM.PDF -o CH32FV2x_V3xRM.PDF https://www.wch-ic.com/downloads/file/324.html
cd ..
# https://www.wch.cn/products/CH32V303.html
# https://www.wch.cn/products/CH32V307.html
cd datasheet_zh
# https://www.wch.cn/downloads/CH32V20x_30xDS0_PDF.html
curl -z CH32V20x_30xDS0.PDF -o CH32V20x_30xDS0.PDF https://www.wch.cn/downloads/file/355.html
# https://www.wch.cn/downloads/CH32V307DS0_PDF.html
#curl -z CH32V307DS0.PDF -o CH32V307DS0.PDF https://www.wch.cn/downloads/file/416.html #(skip) Same file as CH32V20x_30xDS0.PDF
# https://www.wch.cn/downloads/CH32FV2x_V3xRM_PDF.html
curl -z CH32FV2x_V3xRM.PDF -o CH32FV2x_V3xRM.PDF https://www.wch.cn/downloads/file/371.html
cd ..
# https://www.wch.cn/downloads/CH32V307EVT_ZIP.html
curl -z CH32V307EVT.ZIP -o CH32V307EVT.ZIP https://www.wch.cn/downloads/file/356.html
rm -rfv EVT
unzip -O GB2312 *.ZIP
git add . --all
git commit -m "update"
git push origin main