rename-sw-abbreviations.sh: More stuff that must stay verbatim.
This commit is contained in:
@@ -16,8 +16,8 @@ for I in "FrmFmt/FrameFormat" "Fmt/Format" "Cntnt/Content" "Txt/Text" "Tbl/Table
|
|||||||
do
|
do
|
||||||
S="${I%/*}"
|
S="${I%/*}"
|
||||||
# change all except the filenames (in the .mk and in #include)
|
# change all except the filenames (in the .mk and in #include)
|
||||||
# also avoid XML_numFmt, that's a token name
|
# also avoid numFmt (OOXML token) and other stuff that must stay verbatim
|
||||||
git grep -l "$S" sw/ | grep -v -e '\.mk' -e '/data/' | xargs sed -i '/\(#include\|XML_numFmt\)/ !{ s/'"$I"'/g }'
|
git grep -l "$S" sw/ | grep -v -e '\.mk' -e '/data/' | xargs sed -i '/\(#include\|numFmt\|ForeignTxt\)/ !{ s/'"$I"'/g }'
|
||||||
done
|
done
|
||||||
|
|
||||||
# global:
|
# global:
|
||||||
@@ -40,4 +40,4 @@ do
|
|||||||
git grep -l "$S" | grep -v -e '\.mk' -e 'rename-sw-abbreviations.sh' | 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
|
done
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
# vim: set et sw=4 ts=4 textwidth=0:
|
||||||
|
Reference in New Issue
Block a user