* hack; remove the en_GB translation before building packages
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 13 Nov 2007 13:42:03 +0000 (13:42 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 13 Nov 2007 13:42:03 +0000 (13:42 +0000)
  to make us not conflict ith the official translation

pmo-trunk-r3722

debian/rules

index 8300106..f6da553 100755 (executable)
@@ -61,6 +61,7 @@ build-stamp:  config.status
          MAEMO_LAUNCHER_LDFLAGS="$(LAUNCHER_LDFLAGS)"
        touch build-stamp
 
+
 clean:
        dh_testdir
        dh_testroot
@@ -92,6 +93,13 @@ ifeq "$(strip $(LAUNCHER))" "yes"
        $(CURDIR)/debian/modest/usr/bin/modest
 endif
 
+# ACHTUNG: hack
+# we remove the modest.mo english localization, if the current control file contains a reference
+# to modest-l10n-mr0; thus, the modest package will not conflict with that one.
+# if modest-l10n-mr0 is not there, we'll install our own (en_GB) .mo file.
+       grep modest-l10n-mr0 $(CURDIR)/control && rm $(CURDIR)/tmp/usr/share/locale/en_GB/LC_MESSAGES/modest.mo 
+
+
 # Build architecture-independent files here.
 binary-indep: build install
 # We have nothing to do by default.