File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # Disable shellcheck warning about using 'cat' to read a file.
2
3
# shellcheck disable=SC2002
3
4
4
5
# For reference: add tools for all boards by replacing one line in each board
@@ -23,14 +24,23 @@ ESP_ARDUINO_VERSION_MINOR="$2"
23
24
ESP_ARDUINO_VERSION_PATCH=" $3 "
24
25
ESP_ARDUINO_VERSION=" $ESP_ARDUINO_VERSION_MAJOR .$ESP_ARDUINO_VERSION_MINOR .$ESP_ARDUINO_VERSION_PATCH "
25
26
27
+ # Get ESP-IDF version from push.yml (this way we can ensure that the version is correct even if the local libs are not up to date)
28
+ ESP_IDF_VERSION=$( grep " idf_ver:" .github/workflows/push.yml | sed ' s/.*release-v\([^"]*\).*/\1/' )
29
+
26
30
echo " New Arduino Version: $ESP_ARDUINO_VERSION "
31
+ echo " ESP-IDF Version: $ESP_IDF_VERSION "
27
32
28
33
echo " Updating platform.txt..."
29
34
cat platform.txt | sed " s/version=.*/version=$ESP_ARDUINO_VERSION /g" > __platform.txt && mv __platform.txt platform.txt
30
35
31
36
echo " Updating package.json..."
32
37
cat package.json | sed " s/.*\" version\" :.*/ \" version\" : \" $ESP_ARDUINO_VERSION \" ,/g" > __package.json && mv __package.json package.json
33
38
39
+ echo " Updating conf_common.py..."
40
+ cat docs/conf_common.py | \
41
+ sed " s/.. |version| replace:: .*/.. |version| replace:: $ESP_ARDUINO_VERSION /g" | \
42
+ sed " s/.. |idf_version| replace:: .*/.. |idf_version| replace:: $ESP_IDF_VERSION /g" > docs/__conf_common.py && mv docs/__conf_common.py docs/conf_common.py
43
+
34
44
echo " Updating cores/esp32/esp_arduino_version.h..."
35
45
cat cores/esp32/esp_arduino_version.h | \
36
46
sed " s/#define ESP_ARDUINO_VERSION_MAJOR.*/#define ESP_ARDUINO_VERSION_MAJOR $ESP_ARDUINO_VERSION_MAJOR /g" | \
Original file line number Diff line number Diff line change 4
4
5
5
# Used for substituting variables in the documentation
6
6
rst_prolog = """
7
- .. |version| replace:: 3.2.0
7
+ .. |version| replace:: 3.2.1
8
8
.. |idf_version| replace:: 5.4
9
9
"""
10
10
You can’t perform that action at this time.
0 commit comments