mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-02 13:25:41 +02:00
meson cleanups with muon (#2539)
* meson: run through muon's fmt to fix formatting * meson: switch arrays to files Allows muon to alphabetically sort files. switch headers back to arrays as split() can only be used on strings. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@ def updateMesonFile(version):
|
||||
with open(mesonPath, 'rb') as file:
|
||||
lines = file.readlines()
|
||||
replacementRegex = re.compile(b'''version\s*:\s*'(\\d+.\\d+.\\d+)', # CML version placeholder, don't delete''')
|
||||
replacement = '''version : '{0}', # CML version placeholder, don't delete'''.format(version.getVersionString()).encode('ascii')
|
||||
replacement = '''version: '{0}', # CML version placeholder, don't delete'''.format(version.getVersionString()).encode('ascii')
|
||||
with open(mesonPath, 'wb') as file:
|
||||
for line in lines:
|
||||
file.write(replacementRegex.sub(replacement, line))
|
||||
|
Reference in New Issue
Block a user