[Libreoffice-commits] core.git: bin/gbuild-to-ide
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Nov 27 21:57:48 UTC 2016
bin/gbuild-to-ide | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 86524159c6ce305ffe4738e7ce6b56ea166aaf00
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sun Nov 27 22:40:31 2016 +0100
better way to split def patterns
Change-Id: I8c7ab7e980d2ba01214c1dd15c81a309d0d2c80c
Reviewed-on: https://gerrit.libreoffice.org/31274
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 9349543..366b808 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -95,7 +95,7 @@ class GbuildParser:
@staticmethod
def __split_defs(defsline):
defs = {}
- alldefs = [defswitch.strip()[2:] for defswitch in defsline.strip().split(' ') if len(defswitch) > 2]
+ alldefs = [defswitch.strip() for defswitch in defsline.strip().split(' -D') if len(defswitch) > 2]
for d in alldefs:
defparts = d.split('=')
if len(defparts) == 1:
More information about the Libreoffice-commits
mailing list