[Libreoffice-commits] dev-tools.git: 2 commits - clang/README clang/rename.cxx

Jan Holesovsky kendy at collabora.com
Mon Nov 16 01:35:03 PST 2015


 clang/README     |    4 ++--
 clang/rename.cxx |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 409fc53ae78a04edcf7f1d7d3be1714590756bc4
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Mon Nov 16 10:34:08 2015 +0100

    clang: Use .new-prefix as the filename extension for the output.
    
    Change-Id: I059be04639c0587a483da8336a8b688845c8441d

diff --git a/clang/README b/clang/README
index d50be49..fc7cd31 100644
--- a/clang/README
+++ b/clang/README
@@ -66,10 +66,10 @@ Then run:
 make -sr -j8 COMPILER_EXTERNAL_TOOL=1 FORCE_COMPILE_ALL=1 CCACHE_PREFIX=rename-wrapper RENAME_ARGS="-csv=$HOME/rename.csv"
 ----
 
-Once the rewriting is done, you can overwrite the original files with the .new ones with:
+Once the rewriting is done, you can overwrite the original files with the .new-prefix ones with:
 
 ----
-for i in $(find . -name "*.new"); do mv -f $i ${i%%.new}; done
+for i in $(find . -name "*.new-prefix"); do mv -f $i ${i%%.new-prefix}; done
 ----
 
 // vim: ft=asciidoc
commit 337b67a12aaa266c54725fb311d5239d27f0785a
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Mon Nov 16 10:22:37 2015 +0100

    clang: Use .new-prefix as the extension for the new files.
    
    '.new' is too general, could easily bring some unwanted stuff in.
    
    Change-Id: Iba699029a0fe1de963a8584112f000ef021b7605

diff --git a/clang/rename.cxx b/clang/rename.cxx
index 4f80ebd..60bcce7 100644
--- a/clang/rename.cxx
+++ b/clang/rename.cxx
@@ -182,7 +182,7 @@ class RenameASTConsumer : public clang::ASTConsumer
     {
         std::stringstream ss;
         ss << rEntry.getName();
-        ss << ".new";
+        ss << ".new-prefix";
         return ss.str();
     }
 


More information about the Libreoffice-commits mailing list