~ubuntu-branches/ubuntu/gutsy/ekiga/gutsy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-02-24 07:39:52 UTC
  • Revision ID: james.westby@ubuntu.com-20060224073952-47t7b7ci7v3725e1
Tags: 1.99.1-0ubuntu3
debian/rules: Add gettext domain to .server and .desktop files to get
language pack support for them. (Similarly to cdbs' gnome.mk)

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \
78
78
          $(MAKE) install DESTDIR=$(CURDIR)/debian/ekiga
79
79
 
 
80
        # Add translation domain to .desktop and .server files
 
81
        DOMAIN=$$(grep --max-count 1 '^GETTEXT_PACKAGE[[:space:]]*=' $(CURDIR)/po/Makefile | sed 's/^.*=[[:space:]]\([^[:space:]]\)/\1/'); \
 
82
        for d in $$(find debian/ekiga -type f -name "*.desktop" ); do \
 
83
            echo "Adding translation domain $$DOMAIN to $$d..."; \
 
84
            echo "X-Ubuntu-Gettext-Domain=$$DOMAIN" >> $$d; \
 
85
        done; \
 
86
        for d in $$(find debian/ekiga -type f -name "*.server" ); do \
 
87
            echo "Adding translation domain $$DOMAIN to $$d..."; \
 
88
            sed -i "s/<oaf_server\>/<oaf_server ubuntu-gettext-domain=\"$$DOMAIN\"/" $$d; \
 
89
        done; \
80
90
 
81
91
binary-indep: install
82
92