Makefile.in       |    2 +-
 bin/gbuild-to-ide |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit cc24e7ebd9cf536bad6ae5a9f4983ac9e4e87686
Author: Adam Mróz <sada...@gmail.com>
Date:   Mon Feb 10 19:41:50 2014 +0100

    Fixes for kdevelop IDE integration
    
    Script bin/gbuild-to-ide is parsing messages basing on regular
    expressions.
    
    First problem appears when used language is not English - that's why
    setting LC_MESSAGES variable in Makefile.
    
    Second problem appears with quote symbol. For me (Archlinux) script was
    not working. After some investigation I found out that reason was that
    my output from make included ' symbol when regular expression assumed
    that it should be `. That's why using [\'`].
    
    Example:
    
    recipe to execute (from 
'/home/sadam/libreoffice/core/idlc/Executable_idlc.mk', line 28):
    
    Conflicts:
        bin/gbuild-to-ide
    
    Change-Id: I0083c69820bd58ce2ac296f21985408c69840639
    Reviewed-on: https://gerrit.libreoffice.org/7979
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/Makefile.in b/Makefile.in
index 29d76e1..503f74a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -330,7 +330,7 @@ dump-deps-png:
 
 define gb_Top_GbuildToIdeIntegration
 $(1)-ide-integration:
-       cd $(SRCDIR) && ($(GNUMAKE) cmd="$(GNUMAKE) -npf Makefile.gbuild all" 
cmd || true) | $(SRCDIR)/bin/gbuild-to-ide --ide $(1)
+       cd $(SRCDIR) && (LC_MESSAGES=C $(GNUMAKE) cmd="$(GNUMAKE) -npf 
Makefile.gbuild all" cmd || true) | $(SRCDIR)/bin/gbuild-to-ide --ide $(1)
 
 endef
 
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide
index 4fa6bd7..0f08d71 100755
--- a/bin/gbuild-to-ide
+++ b/bin/gbuild-to-ide
@@ -70,8 +70,8 @@ class GbuildParser:
     builddirpattern = re.compile('^BUILDDIR = (.*)')
     instdirpattern = re.compile('^INSTDIR = (.*)')
     binpathpattern = re.compile('LS = (.*)ls(.exe)?')
-    libpattern = re.compile('#  [a-z]+ to execute \(from 
`(.*)/Library_(.*)\.mk\', line [0-9]*\):')
-    exepattern = re.compile('#  [a-z]+ to execute \(from 
`(.*)/Executable_(.*)\.mk\', line [0-9]*\):')
+    libpattern = re.compile('#  [a-z]+ to execute \(from 
[\'`](.*)/Library_(.*)\.mk\', line [0-9]*\):')
+    exepattern = re.compile('#  [a-z]+ to execute \(from 
[\'`](.*)/Executable_(.*)\.mk\', line [0-9]*\):')
     includepattern = re.compile('# INCLUDE := (.*)')
     defspattern = re.compile('# DEFS := (.*)')
     cxxpattern = re.compile('# CXXOBJECTS := (.*)')
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to