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
77
77
# git-added (staged); otherwise, it does nothing.
78
78
# The MSG variable has a default commit message, but one can override it
79
79
# e.g. make push MSG='my message'
80
- push : MSG := ' Update translations from Transifex'
80
+ push : MSG := Update translations from Transifex
81
81
push :
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; \
87
86
git push; \
88
87
else \
89
88
echo ' Nothing to commit' ; \
You can’t perform that action at this time.
0 commit comments