summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-11-27 22:55:36 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-11-27 21:58:44 +0000
commitf567ee19954612d6ebd2c8f6a809478f7c0ee568 (patch)
treec164d99a0d40de30ec5066a7998c499d80d5c7a4 /bin
parent86524159c6ce305ffe4738e7ce6b56ea166aaf00 (diff)
also strip the first -D
Change-Id: Ifc95720b47e1adaadbca879d5b8f22ada658fd3a Reviewed-on: https://gerrit.libreoffice.org/31275 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gbuild-to-ide2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 366b808f6e93..0c6b2b6bd3a2 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: