Move check-pot-changes to Makefile

This commit is contained in:
3wc
2025-08-27 11:21:23 -04:00
committed by 3wordchant
parent ac4ac1d40f
commit 82779b233b
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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: