We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4753843 commit 110966dCopy full SHA for 110966d
tools/get_idf_ver.py
@@ -2,12 +2,14 @@
2
import os
3
import re
4
import sys
5
+import datetime
6
7
def main(ver_file_path):
8
with open(ver_file_path, encoding="utf8") as fp:
9
pattern = r"set\(IDF_VERSION_(MAJOR|MINOR|PATCH) (\d+)\)"
10
matches = re.findall(pattern, fp.read())
11
idf_version = str(".".join([match[1] for match in matches]))
12
+ idf_version = idf_version + str(datetime.date.today())
13
os.environ["IDF_VERSION"] = idf_version
14
return idf_version
15
0 commit comments