~ubuntu-branches/ubuntu/oneiric/spamassassin-heatu/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2010-11-08 19:14:42 UTC
  • Revision ID: james.westby@ubuntu.com-20101108191442-21o4800nkhrl5m0b
Tags: 3.02+20101108-1
Initial release (Closes: #584737).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
PACKAGE         = sa-heatu
 
4
CHANGELOG       = debian/upstream.changelog
 
5
 
 
6
get-changelog:
 
7
        awk '/^# *[0-9]+[.]/ { sub("# *",""); print }' $(PACKAGE) | \
 
8
        sort -r > $(CHANGELOG)
 
9
 
 
10
man:
 
11
        $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
 
12
 
 
13
override_dh_auto_build: man get-changelog
 
14
        # Check warnings
 
15
        perl -cw $(PACKAGE)
 
16
 
 
17
override_dh_installchangelogs:
 
18
        dh_installchangelogs $(CHANGELOG)
 
19
 
 
20
%:
 
21
        dh  $@
 
22
 
 
23
.PHONY: man get-changelog
 
24
 
 
25
# End of file