~ubuntu-branches/ubuntu/trusty/libdr-sundown-perl/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dmitry E. Oboukhov
  • Date: 2012-08-09 09:31:25 UTC
  • Revision ID: package-import@ubuntu.com-20120809093125-8z6sa8dxv8qosb93
Tags: 0.02-1
* New version: the module supports utf8 strings.
* Debian upload, closes: #685124.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
package = $(shell dpkg-parsechangelog|grep ^Source|awk '{print $$2}')
 
4
version = $(shell dpkg-parsechangelog|grep ^Version|awk '{print $$2}'   \
 
5
    |sed 's/-[[:digit:]]\+$$//' \
 
6
)
 
7
 
 
8
 
 
9
override_dh_clean:
 
10
        dh_clean
 
11
        rm -f *.tar.gz
 
12
 
 
13
 
 
14
override_dh_install:
 
15
        dh_install
 
16
        make tardist
 
17
 
 
18
tarball: clean
 
19
        cd .. && tar --exclude=.git --exclude=debian    \
 
20
            -czvf $(package)_$(version).orig.tar.gz \
 
21
            $(package)-$(version)
 
22
 
 
23
%:
 
24
        dh $@