summaryrefslogtreecommitdiff
path: root/podcast
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-11-29 20:45:12 (GMT)
committerAndreas Oberritter <obi@opendreambox.org>2010-12-16 18:27:53 (GMT)
commit97d377b675d322849eb54e511819ad3e78596b99 (patch)
tree0890cee223c7f5d54b268688a3ed71f98aaf2eae /podcast
parentcbd19ceea58d1627042e38a33371c8c25b4ca66f (diff)
update build scripts
Diffstat (limited to 'podcast')
-rw-r--r--podcast/etc/Makefile.am2
-rw-r--r--podcast/po/Makefile.am60
-rw-r--r--podcast/src/Makefile.am2
3 files changed, 5 insertions, 59 deletions
diff --git a/podcast/etc/Makefile.am b/podcast/etc/Makefile.am
index 66ef89c..490455c 100644
--- a/podcast/etc/Makefile.am
+++ b/podcast/etc/Makefile.am
@@ -1,2 +1,2 @@
-installdir = /etc/podcast
+installdir = /etc/podcast
install_DATA = podcasts.xml
diff --git a/podcast/po/Makefile.am b/podcast/po/Makefile.am
index 9f0fcd9..cb5c584 100644
--- a/podcast/po/Makefile.am
+++ b/podcast/po/Makefile.am
@@ -1,57 +1,3 @@
-#
-# to use this for the localisation of other plugins,
-# just change the DOMAIN to the name of the Plugin.
-# It is assumed, that the domain ist the same as
-# the directory name of the plugin.
-#
-
-DOMAIN=Podcast
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/$(DOMAIN)
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de it sr tr
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: $(DOMAIN).pot $(LANGPO) merge $(LANGMO)
- for lang in $(LANGS); do \
- mkdir -p $$lang/LC_MESSAGES; \
- cp $$lang.mo $$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
-
-merge:
- for lang in $(LANGS); do \
- msgmerge --no-location -s -N -U $$lang.po $(DOMAIN).pot; \
- done
-
-
-# the TRANSLATORS: allows putting translation comments before the to-be-translated line.
-$(DOMAIN).pot:
- $(GETTEXT) -L python --add-comments="TRANSLATORS:" -d $(DOMAIN) -s -o $(DOMAIN).pot ../src/*.py
- msguniq -o $(DOMAIN)uniq.pot $(DOMAIN).pot
- $(RM) $(DOMAIN).pot
- mv $(DOMAIN)uniq.pot $(DOMAIN).pot
-
-.PHONY: $(DOMAIN).pot
-
-
-%.mo: %.po
- $(MSGFMT) -o $@ $<
-
-%.po:
- msginit -l $@ -o $@ -i $(DOMAIN).pot --no-translator
-
-CLEANFILES = $(foreach LANG, $(LANGS),$(LANG).mo)
-
-clean-local:
- $(RM) -r $(LANGS)
-
-install-data-am: default
- for lang in $(LANGS); do \
- mkdir -p $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES; \
- cp $$lang.mo $(DESTDIR)$(installdir)/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
- done
+PLUGIN = Podcast
+LANGS = de it sr tr
+include $(top_srcdir)/Rules-po.mak
diff --git a/podcast/src/Makefile.am b/podcast/src/Makefile.am
index d67fbc8..6b68994 100644
--- a/podcast/src/Makefile.am
+++ b/podcast/src/Makefile.am
@@ -1,3 +1,3 @@
-installdir = /usr/lib/enigma2/python/Plugins/Extensions/Podcast
+installdir = $(libdir)/enigma2/python/Plugins/Extensions/Podcast
install_PYTHON = *.py
install_DATA = LICENSE.txt maintainer.info