Move check-pot-changes to Makefile
This commit is contained in:
@ -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
|
||||
|
||||
|
7
Makefile
7
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:
|
||||
|
Reference in New Issue
Block a user