~ubuntu-branches/ubuntu/intrepid/language-pack-gnome-mk-base/intrepid-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: 2008-11-03 14:07:13 UTC
  • Revision ID: james.westby@ubuntu.com-20081103140713-l7hsxr2pl2hfhuo7
Tags: 1:8.10+20081101
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
 
 
10
build: 
 
11
        dh_testdir
 
12
 
 
13
clean:
 
14
        dh_testdir
 
15
        dh_testroot
 
16
        dh_clean
 
17
 
 
18
binary-arch:
 
19
 
 
20
binary-indep:
 
21
        dh_testdir
 
22
        dh_testroot
 
23
        
 
24
        mkdir -p $(LOCALEDIR)
 
25
        cd data; \
 
26
          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
 
 
29
        [ ! -e data/extra.tar ] || tar -C $(PKG) -xf data/extra.tar
 
30
        [ ! -e data/mozilla.tar.gz ] || tar -C $(PKG) -xzf data/mozilla.tar.gz
 
31
        
 
32
        dh_installdocs -i
 
33
        dh_installchangelogs -i
 
34
        dh_compress -i
 
35
        dh_fixperms -i
 
36
        dh_installdeb -i
 
37
        dh_gencontrol -i
 
38
        dh_md5sums -i
 
39
        dh_builddeb -i -- -Z bzip2
 
40
 
 
41
binary: binary-arch binary-indep
 
42
 
 
43
.PHONY: build clean binary-indep binary-arch binary
 
44