Commit 6a970afe authored by Grigory Fedorov's avatar Grigory Fedorov

format_strings and new_strings scripts updated to new project tree.

parent 2cbcb8c4
for i in `find ../res/ -type d -name value*`; do for i in `find ../app/src/main/res/ -type d -name value*`; do
echo $i echo $i
git diff ^HEAD $i | grep + | grep -E "("$(cat $(find ../res/values/ -name *.xml) | grep -E '%([0-9]\$|)[sd]' | perl -p -w -e 's/.*name="(\w+)".*$/$1/g' | sed -e :a -e N -e 's/\n/|/' -e ta)")" git diff ^HEAD $i | grep + | grep -E "("$(cat $(find ../app/src/main/res/values/ -name *.xml) | grep -E '%([0-9]\$|)[sd]' | perl -p -w -e 's/.*name="(\w+)".*$/$1/g' | sed -e :a -e N -e 's/\n/|/' -e ta)")"
done done
for i in `find ../res/ -type d -name value*`; do for i in `find ../app/src/main/res/ -type d -name value*`; do
echo $i echo $i
git diff ^HEAD $i | grep + | grep "<string" | perl -p -i.bak -w -e 's/^\+\s*<string\sname="(\w+)">([^\n]*)<\/string>/$1: $2/g' | perl -p -i.bak -w -e 's/\\n/\n/g' git diff ^HEAD $i | grep + | grep "<string" | perl -p -i.bak -w -e 's/^\+\s*<string\sname="(\w+)">([^\n]*)<\/string>/$1: $2/g' | perl -p -i.bak -w -e 's/\\n/\n/g'
done done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment