~ubuntu-branches/ubuntu/natty/language-pack-nso-base/natty-updates

« 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-06-09 09:52:23 UTC
  • Revision ID: james.westby@ubuntu.com-20110609095223-2e1u6xphkt3opu90
Tags: 1:11.04+20110607
Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
PKGNAME=$(shell grep "^Package: " debian/control | head -1 | cut -f 2 -d\ )
 
7
PKG=$(shell pwd)/debian/$(PKGNAME)
 
8
LOCALEDIR=$(PKG)/usr/share/locale-langpack
 
9
FIREFOX_ADDON_DIR=$(PKG)/usr/lib/firefox-addons/extensions
 
10
 
 
11
build: 
 
12
        dh_testdir
 
13
 
 
14
clean:
 
15
        dh_testdir
 
16
        dh_testroot
 
17
        dh_clean
 
18
 
 
19
binary-arch:
 
20
 
 
21
binary-indep:
 
22
        dh_testdir
 
23
        dh_testroot
 
24
        
 
25
        mkdir -p $(LOCALEDIR)
 
26
        cd data; \
 
27
          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 '*firefox*.xpi' -exec install -D -m 644 "{}" "$(FIREFOX_ADDON_DIR)/`basename {}`" \;
 
30
 
 
31
        [ ! -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
        [ ! -e data/static.tar ] || tar -C $(PKG) -xf data/static.tar
 
35
        
 
36
        dh_installdocs -i
 
37
        dh_installchangelogs -i
 
38
        dh_compress -i
 
39
        dh_fixperms -i
 
40
        dh_installdeb -i
 
41
        dh_gencontrol -i
 
42
        dh_md5sums -i
 
43
        dh_builddeb -i -- -Z bzip2
 
44
 
 
45
binary: binary-arch binary-indep
 
46
 
 
47
.PHONY: build clean binary-indep binary-arch binary
 
48