X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=build-aux%2Fmaint.mk;h=81952027eb75d32b7c467dab1b99e5d66d102ea5;hb=8b9a568d723459746c648f1a4fba4b0f1291d4a0;hp=266b4cb839a46ddf10e69f616d79a09cfb65d673;hpb=24087e0a05e1e23827c8b4829a429865594756d9;p=gnulib.git diff --git a/build-aux/maint.mk b/build-aux/maint.mk index 266b4cb83..81952027e 100644 --- a/build-aux/maint.mk +++ b/build-aux/maint.mk @@ -107,7 +107,19 @@ syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME)) 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 -f $(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: - indent $(C_SOURCES) + indent $(INDENT_SOURCES)