From 7e02518394ed71540cac925da8182380c7e10c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 23 Sep 2015 22:53:31 -0700 Subject: [PATCH] pull-trans: fix adding new files Using find means that we limit ourselves to existing files. --- tools/pull-trans.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/pull-trans.sh b/tools/pull-trans.sh index 2a25e5ed9..dc8dbacc9 100755 --- a/tools/pull-trans.sh +++ b/tools/pull-trans.sh @@ -22,17 +22,15 @@ if ! git ls-remote --exit-code $REMOTE >/dev/null 2>/dev/null; then exit 1 fi -files=$(find . -wholename '*/values-*/strings.xml') - ref="${REMOTE}/${REMOTE_BRANCH}" -diff="HEAD..$ref -- $files" +diff="HEAD..$ref -- */values-*/strings.xml" authors=$(git log --format="%s %an" $diff | \ sed 's/Translated using Weblate (\(.*\)) \(.*\)/\2||\1/' | sort -f -u | column -s '||' -t) git diff $diff | git apply -git add $files +git add */values-*/strings.xml git commit --author "$AUTHOR" -m "Pull translation updates from Weblate