summaryrefslogtreecommitdiffstats
path: root/Makefile.common
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-04-05 21:29:35 +0000
committerPaul W. Frields <stickster@gmail.com>2007-04-05 21:29:35 +0000
commit516018c3548ee9652403d77a243fd01735767804 (patch)
treeed77f208ad20fb196804214c33cf56d44a6a88cc /Makefile.common
parentdf82fb2426d7b657037d4310004bd02db96f1a7d (diff)
downloadfedora-doc-utils-516018c3548ee9652403d77a243fd01735767804.tar.gz
fedora-doc-utils-516018c3548ee9652403d77a243fd01735767804.tar.xz
fedora-doc-utils-516018c3548ee9652403d77a243fd01735767804.zip
Make a function for getting PO statistics, since I do this all the
time and can't possibly be alone.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 5e00731..428d834 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -138,6 +138,7 @@ XMLLINT =xmllint
XML2PO =xml2po
XML2POFLAGS=-k
MSGMERGE=msgmerge
+MSGFMT =msgfmt
LN =ln
MEINPROC=meinproc
#########################################################################
@@ -406,6 +407,9 @@ po/${1}.po:: po/${DOCBASE}.pot $${DOC_ENTITITES_ENT-${1}}
.PHONY: po-${1}
po-${1}:: po/${1}.po
+postat-${1}::
+ @echo "${1}: $(shell $(MSGFMT) --stat po/${1}.po 2>&1 | \
+ sed 's@[^0-9]\+@/@g')"
help::
@printf ${TFMT} 'po-${1}' 'Creates or updates locale ${1} .PO file'
@@ -418,6 +422,7 @@ $(foreach L,${OTHERS},$(eval $(call PO_template,${L})))
.PHONY: po
po:: $(foreach L,${OTHERS},po-${L})
+postat:: $(foreach L,${OTHERS},postat-${L})
clean::
${RM} .xml2po.mo