docs-common Makefile.common,1.160,1.161

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Thu Apr 5 21:29:37 UTC 2007


Author: pfrields

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2929

Modified Files:
	Makefile.common 
Log Message:
Make a function for getting PO statistics, since I do this all the
time and can't possibly be alone.



Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -r1.160 -r1.161
--- Makefile.common	5 Apr 2007 11:32:37 -0000	1.160
+++ Makefile.common	5 Apr 2007 21:29:35 -0000	1.161
@@ -138,6 +138,7 @@
 XML2PO	=xml2po
 XML2POFLAGS=-k
 MSGMERGE=msgmerge
+MSGFMT	=msgfmt
 LN	=ln
 MEINPROC=meinproc
 #########################################################################
@@ -406,6 +407,9 @@
 
 .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 @@
 .PHONY:	po
 
 po::	$(foreach L,${OTHERS},po-${L})
+postat::  $(foreach L,${OTHERS},postat-${L})
 
 clean::
 	${RM} .xml2po.mo




More information about the Fedora-docs-commits mailing list