Selaa lähdekoodia

MMO-12935:表格工具维护 应 樊鑫 要求 取消TC表跟monster表的格式化操作

wangyh 4 vuotta sitten
vanhempi
commit
26f555ae6e
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 6 4
      format_xml.sh

+ 6 - 4
format_xml.sh

@@ -1,7 +1,7 @@
 export LANG=zh_CN.UTF-8@cjknarrow
 git config core.quotepath 0
 # /usr/bin/find  策划脚本 -name '*.xml' | xargs sed -b -i \
-git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
+git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|grep -v  -e 'items/Tc.xml' -e 'monster/Monster.xml'|xargs sed -b -i \
     -e '/^ *<Active\(Sheet\|Row\|Col\)>/d' \
     -e '/^ *<\(TopRowBottom\|LeftColumnRight\)Pane>/d' \
     -e '/^ *<Selected\/>/d' \
@@ -22,21 +22,23 @@ git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
     -e '/^ *<Table /,/<\/Table>/s/ x:CharSet="[0-9]\+"//g' \
     -e '/^ *<Row /s/\( ss:StyleID=\)"\w\+"/\1"s1"/g' \
     -e '/^ *<Split/d' 
-# /usr/bin/find  策划脚本 -name '*.xml' | xargs sed -b -i \
 git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
+    -e '/^ *<Window\(Height\|Width\|TopX\|TopY\)>/d'  
+# /usr/bin/find  策划脚本 -name '*.xml' | xargs sed -b -i \
+git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|grep -v  -e 'items/Tc.xml' -e 'monster/Monster.xml'|xargs sed -b -i \
     -e '/^ *<\/Table>/a<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">'\
 '<Unsynced\/> <FrozenNoSplit\/> <SplitHorizontal>3<\/SplitHorizontal> <TopRowBottomPane>3<\/TopRowBottomPane> <SplitVertical>1<\/SplitVertical>'\
 '<LeftColumnRightPane>1<\/LeftColumnRightPane> <ActivePane>0<\/ActivePane>'\
 '\n<\/WorksheetOptions>'
 
 # /usr/bin/find  策划脚本 -name '*.xml' | while read n;
-git diff  --name-only  HEAD 策划脚本| grep '\.xml$'| while read n ; 
+git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|grep -v  -e 'items/Tc.xml' -e 'monster/Monster.xml'| while read n ; 
 do 
     awk -f style.awk "$n" > awk.tmp
     mv awk.tmp "$n"
 done
 
-git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
+git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|grep -v  -e 'items/Tc.xml' -e 'monster/Monster.xml'|xargs sed -b -i \
     -e 's/ x:Family="[^"]*"//g' \
     -e 's/ss:Data ss:Type="String" xmlns="http:[^"]*">\(.*\)<\/ss:Data>/Data ss:Type="String">\1<\/Data>/g' \
     -e '/^ *<Cell[ >].*<\/Cell>/s/ ss:StyleID="\w\+"//g'