bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH 4/4] maint.mk: Imporved LINGUAS generation.


From: Martin von Gagern
Subject: [PATCH 4/4] maint.mk: Imporved LINGUAS generation.
Date: Thu, 21 Jan 2010 15:39:50 +0100

This change avoids duplicates for address@hidden and address@hidden  It also 
ensures
that the list is completely sorted and that any comment lines preceding the
list of linguas will be preserved.  Non-lingua lines following the list of
linguas will be moved in front of the linguas, so it is suggested to avoid
any such lines.  A header should be enough.
---
 top/maint.mk |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/top/maint.mk b/top/maint.mk
index 438d3ab..644e4b1 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -858,9 +858,10 @@ refresh-po:
        $(patsubst %,-f 'protect %',$(RSYNC_PROTECT)) \
        -f 'include *.po' -f 'exclude *' \
        translationproject.org::tp/latest/$(PO_DOMAIN)/ $(PODIR)
-       echo 'address@hidden' > $(PODIR)/LINGUAS && \
-       echo 'address@hidden' >> $(PODIR)/LINGUAS && \
-       ls $(PODIR)/*.po | sed 's/\.po//' | sed 's,$(PODIR)/,,' | sort >> 
$(PODIR)/LINGUAS
+       @touch $(PODIR)/LINGUAS
+       sed -ie '/^[a-z]/d' $(PODIR)/LINGUAS
+       { echo 'address@hidden'; echo 'address@hidden'; ls $(PODIR)/*.po; } \
+       | sed -e 's/\.po//' -e 's,$(PODIR)/,,' | sort -u >> $(PODIR)/LINGUAS
 
 INDENT_SOURCES ?= $(C_SOURCES)
 .PHONY: indent
-- 
1.6.6





reply via email to

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