~ubuntu-branches/ubuntu/trusty/language-pack-gnome-nds-base/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Ubuntu automatic language-pack builder
  • Date: 2012-01-02 17:40:44 UTC
  • Revision ID: package-import@ubuntu.com-20120102174044-0ry9yuao6t8oas81
Tags: 1:12.04+20111229
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
10
9
 
11
10
build: 
12
11
        dh_testdir
26
25
        cd data; \
27
26
          find -type d -exec mkdir -p "$(LOCALEDIR)/{}" \; ; \
28
27
          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 {}`" \;
30
28
 
31
29
        [ ! -e data/extra.tar ] || tar -C $(PKG) -xf data/extra.tar
32
 
        [ ! -e data/mozilla.tar.gz ] || tar -C $(PKG) -xzf data/mozilla.tar.gz
33
 
        [ ! -e data/searchplugins.tar ] || tar -C $(PKG) -xf data/searchplugins.tar
34
30
        [ ! -e data/static.tar ] || tar -C $(PKG) -xf data/static.tar
35
31
        
36
32
        dh_installdocs -i