feat: clean the parse result by build.sh

This commit is contained in:
SukkaW 2018-08-03 15:12:00 +08:00
parent 10f61bba46
commit 8aa0d264cb
4 changed files with 16 additions and 3 deletions

10
build.sh Normal file
View file

@ -0,0 +1,10 @@
sed -i 's| ELEMENT=manifest ATTRIBUTE=version VALUE=||g' tmp/chrome_xml_parser_result.txt
sed -i 's| ELEMENT=url ATTRIBUTE=codebase VALUE=||g' tmp/chrome_xml_parser_result.txt
sed -i 's| ATTRIBUTE=hash |\n|g' tmp/chrome_xml_parser_result.txt
sed -i 's| ATTRIBUTE=name VALUE=|\n|g' tmp/chrome_xml_parser_result.txt
sed -i 's| ATTRIBUTE=required VALUE=true ATTRIBUTE=size VALUE=|\n|g' tmp/chrome_xml_parser_result.txt
sed -i 's| ATTRIBUTE=hash_sha256 VALUE=|\n|g' tmp/chrome_xml_parser_result.txt
sed -i 's| ELEMENT=time ATTRIBUTE=checktime VALUE=||g' tmp/chrome_xml_parser_result.txt
sed -i 's| ||g' tmp/chrome_xml_parser_result.txt
checktime=$(sed -n '3p' ./tmp/chrome_xml_parser_result.txt)