~ubuntu-branches/ubuntu/edgy/gimp/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2006-02-24 06:43:14 UTC
  • Revision ID: james.westby@ubuntu.com-20060224064314-3p0upaxglsfkkewq
Tags: 2.2.10-1ubuntu2
debian/rules: Add gettext domain to .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:
116
116
        install -m644 debian/tmp/usr/share/gimp/$(major)/misc/gimp.applications \
117
117
                debian/tmp/usr/share/application-registry/gimp-2.2.applications
118
118
 
 
119
        # Add translation domain to .desktop and .server files
 
120
        DOMAIN=$$(grep --max-count 1 '^GETTEXT_PACKAGE[[:space:]]*=' $(CURDIR)/po/Makefile | sed 's/^.*=[[:space:]]\([^[:space:]]\)/\1/'); \
 
121
        for d in $$(find debian/tmp -type f -name "*.desktop" ); do \
 
122
            echo "Adding translation domain $$DOMAIN to $$d..."; \
 
123
            echo "X-Ubuntu-Gettext-Domain=$$DOMAIN" >> $$d; \
 
124
        done;
 
125
 
119
126
        touch install-stamp
120
127
 
121
128
# Build architecture-independent files here.