Move check-pot-changes to Makefile
This commit is contained in:
@ -32,9 +32,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add patchutils git make
|
- apk add patchutils git make
|
||||||
- cd /drone/src
|
- cd /drone/src
|
||||||
- sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/abra.pot
|
- make update-pot-metadata 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 --
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- xgettext-go
|
- xgettext-go
|
||||||
|
|
||||||
|
7
Makefile
7
Makefile
@ -84,7 +84,12 @@ update-pot:
|
|||||||
|
|
||||||
.PHONY: update-pot-po-metadata
|
.PHONY: update-pot-po-metadata
|
||||||
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
|
.PHONY: build-mo
|
||||||
build-mo:
|
build-mo:
|
||||||
|
Reference in New Issue
Block a user