[SCM] Packaging for padre-plugin-vi branch, master, updated. upstream/0.22-13-g51396e7

Ryan Niebur ryanryan52 at gmail.com
Mon Jun 22 09:25:06 UTC 2009


The following commit has been merged in the master branch:
commit 5fe6832540c9be1149bf520357ffa3a642dc342f
Author: Ryan Niebur <ryanryan52 at gmail.com>
Date:   Mon Jun 22 02:04:48 2009 -0700

    install the translations

diff --git a/debian/rules b/debian/rules
index 2d33f6a..e1b2734 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,16 @@
 #!/usr/bin/make -f
 
+MO_DIR = $(CURDIR)/debian/$(shell dh_listpackages)/usr/share/perl5/auto/share/dist/Padre/Plugin/Vi/locale
+PO_DIR = $(CURDIR)/share/locale/
+
 %:
 	dh $@
+
+CMD=$(subst override_,,$@)
+
+override_dh_auto_install:
+	$(CMD)
+	mkdir -p $(MO_DIR)
+	for f in $(PO_DIR)/*.po; do \
+		msgfmt $$f -o $(MO_DIR)/$$(basename $${f%.po}.mo) ; \
+	done

-- 
Packaging for padre-plugin-vi



More information about the Pkg-perl-cvs-commits mailing list