~ubuntu-branches/ubuntu/vivid/libzabbix-api-perl/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-08-11 04:26:46 UTC
  • Revision ID: package-import@ubuntu.com-20120811042646-le16xahtf2pjzxuv
Tags: upstream-0.004+git20120629
ImportĀ upstreamĀ versionĀ 0.004+git20120629

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
%:
 
4
        dh $@
 
5
 
 
6
PACKAGE := $(shell dpkg-parsechangelog  | \
 
7
        sed -ne 's/^Source: \([a-z.-]*\).*/\1/p')
 
8
 
 
9
SRC_VERSION := $(shell dpkg-parsechangelog | \
 
10
        sed -ne 's/^Version: \([^-]\+\)-.*/\1/p')
 
11
 
 
12
# made to work in upstream git workdir, not Debian
 
13
get-orig-source:
 
14
        git archive --format=tar --prefix=$(PACKAGE)/ HEAD | \
 
15
          gzip --no-name --best >../$(PACKAGE)_$(SRC_VERSION).orig.tar.gz
 
16
 
 
17
.PHONY: get-orig-source