[Libreoffice-commits] .: solenv/bin

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 7 07:58:43 PST 2012


 solenv/bin/concat-deps.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit f9c89b0662a3ffbf8af082451beda45f1087738d
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Wed Nov 7 16:57:05 2012 +0100

    Eat unneeded spaces at the beginning of .d files, they confuse concat-deps.
    
    Change-Id: I541fb875d4d0bc46eb1bbb21793343c0283fd412

diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 6db6e71..843cad1 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -892,6 +892,12 @@ off_t size;
     {
         base = cursor_out = cursor = end = buffer;
         end += size;
+
+        /* first eat unneeded space at the beginning of file
+         */
+        while(cursor < end && (*cursor == ' ' || *cursor == '\\'))
+            ++cursor;
+
         while(cursor < end)
         {
             if(*cursor == '\\')


More information about the Libreoffice-commits mailing list