www-el-commits
[Top][All Lists]
Advanced

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

[www-el-commits] www-el GNUmakefile LOG


From: Georgios Zarkadas
Subject: [www-el-commits] www-el GNUmakefile LOG
Date: Sun, 27 Mar 2011 06:09:04 +0000

CVSROOT:        /cvsroot/www-el
Module name:    www-el
Changes by:     Georgios Zarkadas <gzarkadas>   11/03/27 06:09:04

Modified files:
        .              : GNUmakefile LOG 

Log message:
        make nicer reports

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/www-el/GNUmakefile?cvsroot=www-el&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/www-el/LOG?cvsroot=www-el&r1=1.10&r2=1.11

Patches:
Index: GNUmakefile
===================================================================
RCS file: /cvsroot/www-el/www-el/GNUmakefile,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- GNUmakefile 26 Mar 2011 10:31:31 -0000      1.24
+++ GNUmakefile 27 Mar 2011 06:09:04 -0000      1.25
@@ -299,10 +299,14 @@
 # Helper target to check which articles have to be updated.
 .PHONY: report
 report:
+       @export tmpfile=''  # protect previously set from rm
        @for file in $(translations) ; do \
+         [ "$$tmpfile" = "" ] && tmpfile=`tempfile`; \
          LC_ALL=C $(MSGFMT) --statistics -o /dev/null $$file 2>&1 \
-           | egrep '(fuzzy|untranslated)' \
-             && echo "$${file#./} needs updating." || true ; \
+           | egrep '(fuzzy|untranslated)' > $$tmpfile; \
+         [ `< $$tmpfile wc --bytes` -eq 0 ] || printf '%-36s : %s\n' \
+            "$${file#./}" "`sed 's/ [a-z]\+\(\.\|,\)/\1/g' $$tmpfile`"; \
+         rm --force $$tmpfile; \
        done
 
 # Helper target to rewrap all PO files; avoids spurious diffs when
@@ -352,6 +356,7 @@
 # Helper target to remove obsolete messages and store them in a catalog
 .PHONY: obremove
 obremove:
+       @export tmpfile=''  # protect previously set from rm
        @echo Removing obsolete messages to $(obcatalog) ...
        @[ "`tail --lines=1 $(obcatalog)`" = "" ] || echo >> $(obcatalog)
        @for file in $(translations); do \

Index: LOG
===================================================================
RCS file: /cvsroot/www-el/www-el/LOG,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- LOG 21 Mar 2011 22:05:51 -0000      1.10
+++ LOG 27 Mar 2011 06:09:04 -0000      1.11
@@ -8,6 +8,8 @@
 ## subsequent maintenance actions should not.                              ##
 #############################################################################
 
+2011-03-27     CVS     GNUmakefile 'report' target: produce nicer reports
+
 2011-03-21     CVS     Rewritten GNUmakefile to auto tag before commit
                        and apply our extended workflow by default; added
                        'fuzdiff', 'obreport', 'obremove', 'logclean' targets



reply via email to

[Prev in Thread] Current Thread [Next in Thread]