bug-gnulib
[Top][All Lists]
Advanced

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

refresh-po rule


From: Simon Josefsson
Subject: refresh-po rule
Date: Fri, 03 Mar 2006 15:58:38 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Installed.

This may be contentious, but keep in mind that it is not invoked
automatically.  Improvements most welcome.  It Works For Me.

2006-03-03  Simon Josefsson  <address@hidden>

        * build-aux/maint.mk: Add refresh-po rule, based on ideas from
        libidn and bison.

--- maint.mk    03 Mar 2006 15:10:53 +0100      1.4
+++ maint.mk    03 Mar 2006 15:55:39 +0100      
@@ -107,6 +107,18 @@
 
 syntax-check: $(syntax-check-rules)
 
+# Update gettext files.
+PACKAGE ?= $(shell basename $(PWD))
+POURL = http://www.iro.umontreal.ca/translation/maint/$(PACKAGE)/
+PODIR ?= po
+refresh-po:
+       rm $(PODIR)/*.po && \
+       echo "$(ME): getting translations into po (please ignore the robots.txt 
ERROR 404)..." && \
+       wget --no-verbose --directory-prefix $(PODIR) --no-directories 
--recursive --level 1 --accept .po --accept .po.1 $(POURL) && \
+       echo 'address@hidden' > $(PODIR)/LINGUAS && \
+       echo 'address@hidden' >> $(PODIR)/LINGUAS && \
+       ls $(PODIR)/*.po | sed 's/.po//' | sed 's,$(PODIR)/,,' | sort >> 
$(PODIR)/LINGUAS
+
 INDENT_SOURCES ?= $(C_SOURCES)
 .PHONY: indent
 indent:




reply via email to

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