[Libreoffice-commits] core.git: bin/gbuild-to-ide

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Nov 27 21:59:15 UTC 2016


 bin/gbuild-to-ide |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f567ee19954612d6ebd2c8f6a809478f7c0ee568
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Nov 27 22:55:36 2016 +0100

    also strip the first -D
    
    Change-Id: Ifc95720b47e1adaadbca879d5b8f22ada658fd3a
    Reviewed-on: https://gerrit.libreoffice.org/31275
    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 366b808..0c6b2b6 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() for defswitch in defsline.strip().split(' -D') if len(defswitch) > 2]
+        alldefs = [defswitch.strip() for defswitch in defsline.strip().lstrip('-D').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