mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
shorten pattern to include multi-line elements (I should use
xmlstarlet here but need to grok xslt); don't report as missing strings in the common file
This commit is contained in:
parent
cc984f02ab
commit
6b9c4a4e0f
1 changed files with 4 additions and 2 deletions
|
@ -5,8 +5,10 @@ LOCALES=values
|
|||
check_add () {
|
||||
STRING=$1
|
||||
for VALUES in $LOCALES; do
|
||||
PAT="<string name=\"$STRING\">.*</string>"
|
||||
if [ ! -f "res/$VALUES/strings.xml" ]; then
|
||||
PAT="<string name=\"$STRING\">"
|
||||
if grep -q "$PAT" res/values/common_rsrc.xml; then
|
||||
:
|
||||
elif [ ! -f "res/$VALUES/strings.xml" ]; then
|
||||
echo "error: res/$VALUES/strings.xml not found" 1>&2
|
||||
elif ! grep -q "$PAT" res/$VALUES/strings.xml; then
|
||||
echo "<string name=\"$STRING\">$STRING</string>"
|
||||
|
|
Loading…
Reference in a new issue