~ubuntu-branches/ubuntu/hoary/language-pack-de/hoary

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ubuntu automatic language-pack builder
  • Date: 2005-04-06 10:36:37 UTC
  • Revision ID: james.westby@ubuntu.com-20050406103637-90ojjr5mu23mafad
Tags: 20050406
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
PKG=$(shell grep "^Package: " debian/control | head -1 | cut -f 2 -d\ )
 
7
TARGET=$(shell pwd)/debian/$(PKG)/usr/share/locale-langpack
 
8
 
 
9
build: 
 
10
        dh_testdir
 
11
 
 
12
clean:
 
13
        dh_testdir
 
14
        dh_testroot
 
15
        dh_clean
 
16
 
 
17
binary-arch:
 
18
 
 
19
binary-indep:
 
20
        dh_testdir
 
21
        dh_testroot
 
22
        
 
23
        mkdir -p $(TARGET)
 
24
        cd data; \
 
25
          find -type d -exec mkdir -p "$(TARGET)/{}" \; ; \
 
26
          find -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -o $(TARGET)/\$${N%.po}.mo \$$N" \;
 
27
        
 
28
        dh_installdocs -i
 
29
        dh_installchangelogs -i
 
30
        dh_compress -i
 
31
        dh_fixperms -i
 
32
        dh_installdeb -i
 
33
        dh_gencontrol -i
 
34
        dh_md5sums -i
 
35
        dh_builddeb -i -- -Z bzip2
 
36
 
 
37
binary: binary-arch binary-indep
 
38
 
 
39
.PHONY: build clean binary-indep binary-arch binary
 
40