[Libreoffice-commits] core.git: bin/rename-sw-abbreviations.sh

Jan Holesovsky kendy at collabora.com
Tue May 12 07:37:09 PDT 2015


 bin/rename-sw-abbreviations.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 44067f6f2ca09e53a3195553637aea97fcb23239
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue May 12 16:36:13 2015 +0200

    rename-sw-abbreviations.sh: Avoid changing itself.
    
    Change-Id: Ifbcd57a6ecbea67eefc89c2bbd72967b683362a3

diff --git a/bin/rename-sw-abbreviations.sh b/bin/rename-sw-abbreviations.sh
index aea9604..3fb4f56 100755
--- a/bin/rename-sw-abbreviations.sh
+++ b/bin/rename-sw-abbreviations.sh
@@ -37,7 +37,7 @@ for I in "SvxSwAutoFmtFlags/SvxSwAutoFormatFlags" "GetCharFmtName/GetCharFormatN
     "etTxtSize/etTextSize"
 do
     S="${I%/*}"
-    git grep -l "$S" | grep -v '\.mk' | xargs sed -i "s/$I/g"
+    git grep -l "$S" | grep -v -e '\.mk' -e 'rename-sw-abbreviations.sh' | xargs sed -i "s/$I/g"
 done
 
 # vim: set noet sw=4 ts=4:


More information about the Libreoffice-commits mailing list