From 82779b233b8b0f1a015cc0f810064369194911cf Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 27 Aug 2025 11:21:23 -0400 Subject: [PATCH] Move check-pot-changes to Makefile --- .drone.yml | 4 +--- Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 4 deletions(-) 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: