From aeec900f40847462993593d13de492033eee0c83 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Wed, 2 Oct 2013 10:46:23 +0100 Subject: i18n: Add a hack for meta-task. Now that meta-task does not exist inside git, when we extract translations, we need to download it. This just adds appropriate Makefile hacks to do this when updating the pot file. --- perl-install/install/share/po/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'perl-install/install/share/po/Makefile') diff --git a/perl-install/install/share/po/Makefile b/perl-install/install/share/po/Makefile index c20d6e764..7d444738d 100644 --- a/perl-install/install/share/po/Makefile +++ b/perl-install/install/share/po/Makefile @@ -1,6 +1,7 @@ NAME = DrakX LOCALEDIR = ${prefix}/share/locale -PMSFILES = *.pm share/meta-task/compssUsers.pl* ../../advertising/*.pl +METATASK = share/meta-task/compssUsers.pl +PMSFILES = *.pm $(METATASK) ../../advertising/*.pl PMSFILES_HERE = $(wildcard $(PMSFILES:%=../../%)) MAIN_PO_FILES = ../../../share/po/libDrakX.pot @@ -23,7 +24,11 @@ merge: $(NAME).pot mv -f "$$n"t $$n ; \ done -$(NAME).pot: $(PMSFILES_HERE) +../../$(METATASK): + mkdir -p ../../share/meta-task + svn cat svn://svn.mageia.org/svn/packages/cauldron/meta-task/current/SOURCES/compssUsers.pl > $@ + +$(NAME).pot: $(PMSFILES_HERE) ../../$(METATASK) cd ../.. ; perl_checker -q --generate-pot share/po/.$@ $(PMSFILES) xgettext $(MAIN_PO_FILES:%=-x %) -o $@ .$@ rm -f .$@ @@ -35,4 +40,5 @@ install: $(MOFILES) done clean: - @rm -rf *.mo $(POFILES:%=%t) + @rm -rf *.mo $(POFILES:%=%t) ../../$(METATASK) + @rmdir ../../share/meta-task -- cgit v1.2.1