Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-04-03 16:11:09 +0400
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2009-04-03 16:11:09 +0400
commit3598f96838301dad6ede5b1eda6ab5a3071a7ff4 (patch)
treeced830ba710bf3af5135b7c613816e82fcf64afc /po
parent8a840c35bea237952075c1ee9e8ac04cfb6e4700 (diff)
Automatic consistency check of generated vs commited .mo files.
Yeah, this should had gone to trunk, but as the first patch was applied here, let's follow on and wait for merge.
Diffstat (limited to 'po')
-rw-r--r--po/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/po/Makefile b/po/Makefile
index 40b4684f5c0..425efbc08b3 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -22,7 +22,7 @@
# Amsterdam, the Netherlands.
# All rights reserved.
#
-# The Original Code is: revision 1.2
+# The Original Code is: revision 1.3
#
# Contributor(s): Wouter van Heyst, GSR
#
@@ -50,6 +50,9 @@ LINGUAS_DEST= $(foreach LINGUA, $(LINGUAS),$(DIR)$(LINGUA)/LC_MESSAGES/blender.m
$(DIR)%/LC_MESSAGES/blender.mo: %.po
mkdir -p $(@D)
msgfmt -o $@ $<
+ @cmp $@ $(NANBLENDERHOME)/bin/.blender/locale/$(basename $<)/LC_MESSAGES/blender.mo \
+ || ( echo Mismatch between generated and commited $(basename $<).mo catalog && \
+ rm -f $@ && false )
all debug:: $(LINGUAS_DEST)
# Just trigger the deps