diff --git a/.drone.yml b/.drone.yml index c5b53234..ae9d3c26 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,9 +32,7 @@ steps: commands: - apk add patchutils git make - cd /drone/src - - sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/abra.pot - - git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse - - git diff-index --quiet --cached HEAD -- + - make update-pot-metadata check-pot-changes depends_on: - xgettext-go diff --git a/Makefile b/Makefile index f7051d70..25a8394a 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,12 @@ update-pot: .PHONY: update-pot-po-metadata update-pot-po-metadata: - @sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.po* + @sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.po pkg/i18n/locales/*.pot* + +.PHONY: check-pot-changes +check-pot-changes: + @git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse + @git diff-index --quiet --cached HEAD -- .PHONY: build-mo build-mo: