[Libreoffice-commits] core.git: solenv/bin

Stephan Bergmann sbergman at redhat.com
Thu Mar 9 10:05:44 UTC 2017


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

New commits:
commit c10b0ff860d1c2743175b02863c409e0fe277fb8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Mar 9 11:04:53 2017 +0100

    "/CxxObject/" etc. part was missing from generate_phony_line output
    
    Change-Id: I973468aab05f85c39b33bbf7be7f3ee389273c21

diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index 1d6907d..f9a551f 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -870,7 +870,7 @@ char const * src;
 char* dest;
 char* last_dot = NULL;
     //fprintf(stderr, "generate_phony_line called with phony_target %s and extension %s\n", phony_target, extension);
-    for(dest = phony_content_buffer+work_dir_len, src = phony_target; *src != 0; ++src, ++dest)
+    for(dest = phony_content_buffer+work_dir_len+1, src = phony_target; *src != 0; ++src, ++dest)
     {
         *dest = *src;
         if(*dest == '.')
@@ -1033,47 +1033,47 @@ off_t size;
                 // cases ordered by frequency
                 if(strncmp(src_relative, "CxxObject/", 10) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+10, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(fn+work_dir_len+5, "SrsPartTarget/", 14) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+14, "");
+                    created_line = generate_phony_line(src_relative, "");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "GenCxxObject/", 13) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+13, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "CObject/", 8) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+8, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "GenCObject/", 11) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+11, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "SdiObject/", 10) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+10, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "AsmObject/", 10) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+10, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "ObjCxxObject/", 13) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+13, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else if(strncmp(src_relative, "ObjCObject/", 11) == 0)
                 {
-                    created_line = generate_phony_line(src_relative+11, "o");
+                    created_line = generate_phony_line(src_relative, "o");
                     rc = generate_phony_file(fn, created_line);
                 }
                 else


More information about the Libreoffice-commits mailing list