mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +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 () {
|
check_add () {
|
||||||
STRING=$1
|
STRING=$1
|
||||||
for VALUES in $LOCALES; do
|
for VALUES in $LOCALES; do
|
||||||
PAT="<string name=\"$STRING\">.*</string>"
|
PAT="<string name=\"$STRING\">"
|
||||||
if [ ! -f "res/$VALUES/strings.xml" ]; then
|
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
|
echo "error: res/$VALUES/strings.xml not found" 1>&2
|
||||||
elif ! grep -q "$PAT" res/$VALUES/strings.xml; then
|
elif ! grep -q "$PAT" res/$VALUES/strings.xml; then
|
||||||
echo "<string name=\"$STRING\">$STRING</string>"
|
echo "<string name=\"$STRING\">$STRING</string>"
|
||||||
|
|
Loading…
Reference in a new issue