forked from bartvdbraak/blender
Make verification of committed .mo files optional.
This commit is contained in:
parent
063d806f15
commit
581cb64f2c
@ -50,9 +50,11 @@ LINGUAS_DEST= $(foreach LINGUA, $(LINGUAS),$(DIR)$(LINGUA)/LC_MESSAGES/blender.m
|
||||
$(DIR)%/LC_MESSAGES/blender.mo: %.po
|
||||
mkdir -p $(@D)
|
||||
msgfmt -o $@ $<
|
||||
ifeq ($(BF_VERIFY_MO_FILES), true)
|
||||
@cmp $@ $(NANBLENDERHOME)/bin/.blender/locale/$(basename $<)/LC_MESSAGES/blender.mo \
|
||||
|| ( echo Mismatch between generated and commited $(basename $<).mo catalog && \
|
||||
rm -f $@ && false )
|
||||
endif
|
||||
|
||||
all debug:: $(LINGUAS_DEST)
|
||||
# Just trigger the deps
|
||||
|
@ -143,6 +143,9 @@ ifndef CONFIG_GUESS
|
||||
export NAN_FFMPEGCFLAGS = $(shell pkg-config --cflags libavcodec libavdevice libavformat libswscale libavutil)
|
||||
endif
|
||||
|
||||
# Compare recreated .mo files with committed ones
|
||||
export BF_VERIFY_MO_FILES ?= true
|
||||
|
||||
# Platform Dependent settings go below:
|
||||
ifeq ($(OS),darwin)
|
||||
|
||||
@ -309,6 +312,9 @@ ifndef CONFIG_GUESS
|
||||
# enable l10n
|
||||
export INTERNATIONAL ?= true
|
||||
|
||||
# Different endianess will make it fail, rely on other plataforms for checks
|
||||
export BF_VERIFY_MO_FILES = false
|
||||
|
||||
else
|
||||
ifeq ($(OS),linux)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user