File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,12 @@ build: setup po-install
7777# git-added (staged); otherwise, it does nothing.
7878# The MSG variable has a default commit message, but one can override it
7979# e.g. make push MSG='my message'
80- push : MSG := ' Update translations from Transifex'
80+ push : MSG := Update translations from Transifex
8181push :
82- @git diff -I' ^"POT-Creation-Date: ' --numstat * .po ** /* .po \
83- | cut -f3 | xargs -r git add
84- @git add $(git ls-files -o --exclude-standard *.po **/*.po ) .tx/config
85- @if [ -n " $( git diff --name-only --cached) " ]; then \
86- git commit -m $(MSG ) ; \
82+ @CHANGED=$(shell git diff -I'^"POT-Creation-Date: ' --numstat * .po ** /* .po | cut -f3) ; \
83+ NEW=$(shell git ls-files -o * .po ** /* .po) ; \
84+ if [[ " $$ CHANGED$$ NEW" != " " ]]; then \
85+ git commit -m ' $(MSG)' $$ CHANGED $$ NEW .tx/config; \
8786 git push; \
8887 else \
8988 echo ' Nothing to commit' ; \
You can’t perform that action at this time.
0 commit comments