[ciderwebmail] 08/12: Resolve localizations during build (don't hardcode).

Jonas Smedegaard dr at jones.dk
Wed Oct 22 18:50:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch experimental
in repository ciderwebmail.

commit a5ca5169de122dd822f1372a15221b6833324ee7
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Wed Oct 22 19:54:04 2014 +0200

    Resolve localizations during build (don't hardcode).
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ca0fd58..8775352 100755
--- a/debian/rules
+++ b/debian/rules
@@ -122,9 +122,11 @@ clean::
 	rm -f debian/stamp-upstream-cruft
 
 # (Re)generate localized templates
+langs := $(shell \
+	find root/locale -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
 configure/$(pkg):: debian/stamp-mktemplates
 debian/stamp-mktemplates: pre-build
-	for lang in da de en; do \
+	for lang in $(langs); do \
 		stem=root/locale/$$lang/LC_MESSAGES/CiderWebmail; \
 		msgfmt -o $$stem.mo $$stem.po; \
 	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/ciderwebmail.git



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