~ubuntu-branches/ubuntu/maverick/language-pack-mn/maverick-security

« 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-09 14:37:44 UTC
  • Revision ID: james.westby@ubuntu.com-20110309143744-e89w1eb3yh3wjtnt
Tags: 1:10.10+20110308
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\