diff --git a/should_i_rebuild.sh b/should_i_rebuild.sh index 3ecae4ff..ae463178 100644 --- a/should_i_rebuild.sh +++ b/should_i_rebuild.sh @@ -14,31 +14,19 @@ then exit 1 fi -before_official=$(sha256sum official.json) -before_community=$(sha256sum community.json) -before_dev=$(sha256sum dev.json) before_pull_commit=$(git show HEAD | head -n 1) git pull -if [ "$before_official" != "$(sha256sum official.json)" ] -then - python ./list_builder.py -g $1 official.json -fi - -if [ "$before_community" != "$(sha256sum community.json)" ] -then - python ./list_builder.py -g $1 community.json -fi - -if [ "$before_dev" != "$(sha256sum dev.json)" ] -then - python ./list_builder.py -g $1 dev.json -fi if [ "$before_pull_commit" != "$(git show HEAD | head -n 1)" ] then + python ./list_builder.py -g $1 official.json + python ./list_builder.py -g $1 community.json + python ./list_builder.py -g $1 dev.json + python ./update_translations.py official-build.json community-build.json dev-build.json + if [ "$(git status -s| grep 'M locales/en.json')" ] then git add locales/en.json