~ubuntu-branches/ubuntu/quantal/foomatic-filters/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud, Translation updates
  • Date: 2011-02-09 15:38:14 UTC
  • mfrom: (1.2.4 upstream) (6.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110209153814-noiljpseb0kzdlzs
Tags: 4.0.6-1
* Upload to unstable.

[ Translation updates ]
* Japanese: Indent correctly.

* Explicitly depend on bash (Closes: #600179)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
ifeq ($(derives_from_ubuntu),yes)
23
23
        install -D -m 644 debian/ubuntu/apport-hook.py $(CURDIR)/debian/foomatic-filters/usr/share/apport/package-hooks/source_foomatic-filters.py
24
24
endif
 
25
        
 
26
        # Prepare the postinst with distro-specific versions
 
27
        cp debian/foomatic-filters.postinst.in debian/foomatic-filters.postinst
 
28
ifeq ($(derives_from_ubuntu),yes)
 
29
        # We derive from Ubuntu, the ps_accounting default change was made in version 3.0.2-20070719-0ubuntu1
 
30
        sed -i -e "s/#MOTHER_DISTRO#/Ubuntu/g" debian/foomatic-filters.postinst
 
31
        sed -i -e "s/#FF_PS_DEFAULT_CHANGE_VERSION#/3.0.2-20070719-0ubuntu1/g" debian/foomatic-filters.postinst
 
32
else
 
33
        # We derive from Debian, the ps_accounting default change was made in version 4.0.5-1
 
34
        sed -i -e "s/#MOTHER_DISTRO#/Debian/g" debian/foomatic-filters.postinst
 
35
        sed -i -e "s/#FF_PS_DEFAULT_CHANGE_VERSION#/4.0.5-1/g" debian/foomatic-filters.postinst
 
36
endif
 
37
 
 
38
override_dh_clean:
 
39
        dh_clean
 
40
        # Update the translations (ensures no outdated file is left behind)
 
41
        debconf-updatepo
 
42
 
 
43
override_dh_perl:
 
44
        # Perl scripts from this package don't use any perl modules, so call dh_perl with "-d" to avoid the unnecessary perl dependency
 
45
        dh_perl -d