summaryrefslogtreecommitdiffstats
path: root/perl-install/install/share/po/Makefile
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-10-02 10:46:23 +0100
committerColin Guthrie <colin@mageia.org>2013-10-02 10:46:23 +0100
commitaeec900f40847462993593d13de492033eee0c83 (patch)
treed3d20f2fcddebf1d936305354f20201b08933d66 /perl-install/install/share/po/Makefile
parentccbb9aa634cec72a1c5f7bd8d8fa745bb7077e0f (diff)
downloaddrakx-aeec900f40847462993593d13de492033eee0c83.tar
drakx-aeec900f40847462993593d13de492033eee0c83.tar.gz
drakx-aeec900f40847462993593d13de492033eee0c83.tar.bz2
drakx-aeec900f40847462993593d13de492033eee0c83.tar.xz
drakx-aeec900f40847462993593d13de492033eee0c83.zip
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.
Diffstat (limited to 'perl-install/install/share/po/Makefile')
-rw-r--r--perl-install/install/share/po/Makefile12
1 files changed, 9 insertions, 3 deletions
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