From 0ccd3f1a412b89197ffe39b5cab050651bf848a1 Mon Sep 17 00:00:00 2001 From: lars Date: Tue, 28 Nov 2006 13:49:24 +0000 Subject: [PATCH] compile language files for the debian package --- debian/control | 2 +- debian/rules | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index a806b2b..558c52e 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: cryptobox Section: admin Priority: extra Maintainer: Lars Kruse -Build-Depends: debhelper (>= 5.0.38), dpatch, python-all-dev (>= 2.4), python-central (>= 0.5.6) +Build-Depends: debhelper (>= 5.0.38), dpatch, python-all-dev (>= 2.4), python-central (>= 0.5.6), gettext XS-Python-Version: >= 2.4 Standards-Version: 3.7.2 diff --git a/debian/rules b/debian/rules index 19ca397..64c1282 100755 --- a/debian/rules +++ b/debian/rules @@ -31,6 +31,7 @@ clean-patched: python setup.py clean rm -f build-stamp rm -rf build + find -type f -name '*.mo' -print0 | xargs -0 rm -f find -type f -name '*.py[co]' -print0 | xargs -0 rm -f rm -f MANIFEST dh_clean @@ -50,6 +51,9 @@ install: build dh_clean -k dh_installdirs python setup.py install --root=$(DEB_BUILD_DIR) + # compile language files + find $(DEB_BUILD_DIR) -type f -name \*.po | while read pofile; \ + do msgfmt -o "$${pofile%.po}.mo" "$$pofile"; rm "$$pofile"; done # the cryptobox is a webserver - it should be installed in /usr/sbin mv $(DEB_BUILD_DIR)/usr/bin/CryptoBoxWebserver $(DEB_BUILD_DIR)/usr/sbin/ mv $(DEB_BUILD_DIR)/usr/bin/CryptoBoxRootActions $(DEB_BUILD_DIR)/usr/sbin/