platformio_pre.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user