~ubuntu-branches/ubuntu/raring/language-pack-gd-base/raring-proposed

« 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 19:43:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110308194318-x2yrqjxq6co900kx
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
24
25
        mkdir -p $(LOCALEDIR)
25
26
        cd data; \
26
27
          find -type d -exec mkdir -p "$(LOCALEDIR)/{}" \; ; \
27
 
          find -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -o $(LOCALEDIR)/\$${N%.po}.mo \$$N" \;
 
28
          find -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -o $(LOCALEDIR)/\$${N%.po}.mo \$$N" \; ; \
 
29
          find -type f -name '*firefox*.xpi' -exec install -D -m 644 "{}" "$(FIREFOX_ADDON_DIR)/`basename {}`" \;
28
30
 
29
31
        [ ! -e data/extra.tar ] || tar -C $(PKG) -xf data/extra.tar
30
32
        [ ! -e data/mozilla.tar.gz ] || tar -C $(PKG) -xzf data/mozilla.tar.gz