From 59f9ebc13d7821522306ebafeae6757e15cd6532 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 10 Mar 2015 07:41:10 -0700 Subject: [PATCH] cleanup --- xwords4/android/scripts/add_strings.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/android/scripts/add_strings.sh b/xwords4/android/scripts/add_strings.sh index 816ce8773..9af4ccda9 100755 --- a/xwords4/android/scripts/add_strings.sh +++ b/xwords4/android/scripts/add_strings.sh @@ -18,6 +18,8 @@ check_add () { usage() { echo "usage: $0 [--locale ] [--all]" 1>&2 + echo "pulls string ids out of .xml and .java files" 1>&2 + exit 1 } BASE=$(dirname $0) @@ -28,7 +30,9 @@ while [ -n "$1" ]; do --all) for DIR in $(ls -d res/values-*); do DIR=$(basename $DIR) - LOCALES="$LOCALES $DIR" + if [ -e $DIR/strings.xml ]; then + LOCALES="$LOCALES $DIR" + fi done ;; --locale)