Fix Makefile & .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc
2025-08-27 13:01:40 -04:00
parent d3d3358a79
commit c43e68ea6a
2 changed files with 5 additions and 10 deletions

View File

@ -21,7 +21,10 @@ steps:
commands:
- apk add patchutils git make
- cd /drone/src
- make update-pot-po-metadata check-pot-changes
- sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.pot
- git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse --allow-empty
- git diff
- git diff-files --exit-code
depends_on:
- xgettext-go

View File

@ -85,15 +85,7 @@ update-pot:
.PHONY: update-pot-po-metadata
update-pot-po-metadata:
@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 --allow-empty
@if ! git diff-files --quiet; then \
git diff pkg/i18n/locales/abra.pot; \
exit 1; \
fi
@sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/*.po pkg/i18n/locales/*.pot
.PHONY: build-mo
build-mo: