[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-reference] 24/45: better logging



This is an automated email from the git hooks/post-receive script.

osamu pushed a commit to branch master
in repository debian-reference.

commit 915f050d976867cc2bc33fa7a8382bb62cb8a9f3
Author: Osamu Aoki <osamu@debian.org>
Date:   Fri Nov 8 00:15:15 2013 +0900

    better logging
---
 Makefile |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index d4cc5dc..777dc03 100644
--- a/Makefile
+++ b/Makefile
@@ -206,14 +206,20 @@ po: $(SRC_PO)
 
 $(PODOC)/templates.pot: $(DOCNAME).en.xmlt
 	$(GETTEXT) -m $(DOCNAME).en.xmlt | $(MSGCAT) --no-location -o $(PODOC)/templates.pot -
-	:>fuzzy.log
 
 # Always update
 $(PODOC)/%.po: $(PODOC)/templates.pot FORCE
 	$(UPDATEPO) $(PODOC)/$*.po $(PODOC)/templates.pot
-	FUZZY="fuzzy $*: `grep -e ' fuzzy' $(PODOC)/$*.po |wc -l`";\
-	echo "$$FUZZY" ; \
-	echo "$$FUZZY" >>fuzzy.log
+	MESS1="no-obsolete  $*  `msgattrib --no-obsolete   $(PODOC)/$*.po |grep ^msgid |wc -l`";\
+	MESS2="untranslated $*  `msgattrib --untranslated $(PODOC)/$*.po |grep ^msgid |wc -l`";\
+	MESS3="fuzzy        $*  `msgattrib --fuzzy        $(PODOC)/$*.po |grep ^msgid |wc -l`";\
+	echo "$$MESS1" ; \
+	echo "$$MESS2" ; \
+	echo "$$MESS3" ; \
+	echo "$$MESS1" >>fuzzy.log ; \
+	echo "$$MESS2" >>fuzzy.log ; \
+	echo "$$MESS3" >>fuzzy.log ; \
+	echo "" >>fuzzy.log
 
 FORCE:
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/ddp/debian-reference.git


Reply to: