From bbcd105d0dca72ad86b81fe234027aad228bd5a9 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Mon, 4 May 2020 14:31:06 +0200 Subject: clean-spec: also allow initial spaces/tabs in make_build macro cleanup --- mgagnome | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mgagnome b/mgagnome index 619e759..622b1ab 100755 --- a/mgagnome +++ b/mgagnome @@ -532,13 +532,13 @@ class SpecFile(): ), ( 'change make macro to make_build', - r'%make_build', - re.compile(r'^%make\b', re.MULTILINE) + r'\g%make_build', + re.compile(r'^(?P[ \t]*)%make\b', re.MULTILINE) ), ( 'make_build already implies V=1 and VERBOSE=1, remove these', - r'%make_build', - re.compile(r'^%make_build(?:[ \t]+(?:V=1|VERBOSE=1))+\b', re.MULTILINE) + r'\g%make_build', + re.compile(r'^(?P[ \t]*)%make_build(?:[ \t]+(?:V=1|VERBOSE=1))+\b', re.MULTILINE) ), # Can have side-effects, disable for now #( -- cgit v1.2.1