~ubuntu-branches/ubuntu/lucid/libmodule-install-xsutil-perl/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Yu
  • Date: 2009-12-17 05:45:21 UTC
  • Revision ID: james.westby@ubuntu.com-20091217054521-cy3449yc854r1lo6
Tags: 0.19-1
Initial Release (Closes: #559987)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
PACKAGE = $(shell dh_listpackages)
 
4
TMP     = $(CURDIR)/debian/$(PACKAGE)
 
5
 
 
6
%:
 
7
        dh $@
 
8
 
 
9
override_dh_installexamples:
 
10
        dh_installexamples
 
11
        sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/Makefile.PL
 
12
        sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/t/foo.t
 
13
 
 
14
override_dh_fixperms:
 
15
        dh_fixperms
 
16
        chmod -R 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
 
17
        chmod 0755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/include
 
18
        chmod 0755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/include/foo
 
19
        chmod 0755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/lib
 
20
        chmod 0755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/src
 
21
        chmod 0755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/t