platformio_pre.py

This commit is contained in:
Бычков Андрей
2022-08-11 11:40:49 +03:00
parent fed2c5991d
commit f07f814b08

View File

@@ -1,12 +1,12 @@
import os
import glob
import glob
import shutil
import re
# The list of items
files = glob.glob('libs/main/*/*.h', recursive=True)
files += glob.glob('libs/main/*.h', recursive=True)
tdir = './include/'
if os.path.exists(tdir):
@@ -74,7 +74,7 @@ with open('CMakeLists.txt') as cm:
version_h.replace('${VERSION_MAJOR}', v_major[0])
version_h.replace('${VERSION_MINOR}', v_minor[0])
version_h.replace('${VERSION_REVISION}', v_rev[0])
if len(v_suffix):
if len(v_suffix):
ver += v_suffix[0]
version_h.replace('${VERSION_SUFFIX}', v_suffix[0])
else: