fix to work from main build directory

This commit is contained in:
Eric House 2012-11-01 19:32:08 -07:00
parent 1c33c8cc31
commit 935e3b9673
2 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,8 @@ set -e -u
# Grabs the list of string names from values.xml and greps for each.
# If it's not found in a .java or .xml file lists it.
cd $(dirname $0)
IDS=$(./string-names.sh ../XWords4/res/values/strings.xml)
STR_COUNT=$(echo $IDS | wc -w)

View file

@ -23,6 +23,7 @@ while [ $# -ge 1 ]; do
shift
done
[ -n "$FILE" ] || usage "file parameter missing"
[ -e $FILE ] || usage "File $FILE not found"
xmlstarlet sel -T -t -m "/resources/string" -v @name -n $FILE