This change avoids duplicates for e...@boldquot and e...@quot. 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 'e...@boldquot' > $(PODIR)/LINGUAS && \ - echo 'e...@quot' >> $(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 'e...@boldquot'; echo 'e...@quot'; ls $(PODIR)/*.po; } \ + | sed -e 's/\.po//' -e 's,$(PODIR)/,,' | sort -u >> $(PODIR)/LINGUAS INDENT_SOURCES ?= $(C_SOURCES) .PHONY: indent -- 1.6.6