~ubuntu-branches/ubuntu/oneiric/language-pack-kde-tr/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu automatic language-pack builder
  • Date: 2011-03-08 18:41:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110308184122-s3u7i70esys2048b
Tags: 1:11.04+20110307
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
PKGNAME=$(shell grep "^Package: " debian/control | head -1 | cut -f 2 -d\ )
7
7
PKG=$(shell pwd)/debian/$(PKGNAME)
8
8
LOCALEDIR=$(PKG)/usr/share/locale-langpack
 
9
FIREFOX_ADDON_DIR=$(PKG)/usr/lib/firefox-addons/extensions
9
10
 
10
11
build: 
11
12
        dh_testdir
25
26
        mkdir -p $(LOCALEDIR)
26
27
        cd data; \
27
28
          find -type d -exec mkdir -p "$(LOCALEDIR)/{}" \; ; \
28
 
          find -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -o $(LOCALEDIR)/\$${N%.po}.mo \$$N" \;
 
29
          find -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -o $(LOCALEDIR)/\$${N%.po}.mo \$$N" \; ; \
 
30
          find -type f -name '*.xpi' -exec install -D -m 644 "{}" "$(FIREFOX_ADDON_DIR)/`basename {}`" \;
29
31
        
30
32
        cd debian/upgrade-notes; for f in `ls`; do \
31
33
            [ -e ../postinst ] || echo -e "#!/bin/sh -e\n\