changeset 6677:20883ede701b

* build-aux/maint.mk: Add refresh-po rule, based on ideas from libidn and bison.
author Simon Josefsson <simon@josefsson.org>
date Fri, 03 Mar 2006 14:57:13 +0000
parents de37f8bb7241
children 4bd2178b8dab
files ChangeLog build-aux/maint.mk
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-03  Simon Josefsson  <jas@extundo.com>
+
+	* build-aux/maint.mk: Add refresh-po rule, based on ideas from
+	libidn and bison.
+
 2006-03-03  Simon Josefsson  <jas@extundo.com>
 
 	* build-aux/maint.mk: Add several syntax checks from CoreUtils.
--- a/build-aux/maint.mk
+++ b/build-aux/maint.mk
@@ -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 'en@boldquot' > $(PODIR)/LINGUAS && \
+	echo 'en@quot' >> $(PODIR)/LINGUAS && \
+	ls $(PODIR)/*.po | sed 's/.po//' | sed 's,$(PODIR)/,,' | sort >> $(PODIR)/LINGUAS
+
 INDENT_SOURCES ?= $(C_SOURCES)
 .PHONY: indent
 indent: