Makefile: Do not revert pot file changes when running "make generate"

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-08-24 12:39:23 +02:00
parent c5a2753d39
commit 01f4dd4d27

View File

@ -140,10 +140,10 @@ generate:
go generate ./pkg/... ./internal/...
go fmt ./pkg/... ./internal/...
# revert unnecessary pot file change
POT_UNCHANGED='1 file changed, 1 insertion(+), 1 deletion(-)'
@if [ ${$(shell git diff --shortstat assets/locales/messages.pot):1:45} == $(POT_UNCHANGED) ]; then\
git checkout -- assets/locales/messages.pot;\
fi
# POT_UNCHANGED='1 file changed, 1 insertion(+), 1 deletion(-)'
# @if [ ${$(shell git diff --shortstat assets/locales/messages.pot):1:45} == $(POT_UNCHANGED) ]; then\
# git checkout -- assets/locales/messages.pot;\
# fi
clean-local-assets:
rm -rf $(BUILD_PATH)/assets/*
clean-local-cache: