Use dpkg provided make-snippets

svn path=/dists/trunk/linux-tools/; revision=22772
This commit is contained in:
Bastian Blank 2015-06-28 19:00:39 +00:00
parent b4ca8fe3f8
commit ab2a55f5f2
3 changed files with 2 additions and 5 deletions

2
debian/rules vendored
View File

@ -1,8 +1,6 @@
#!/usr/bin/make -f
SHELL := sh -e
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p')
VERSION_DEBIAN := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
VERSION := $(shell echo "$(VERSION_DEBIAN)" | sed -e 's,-[^-]*$$,,')

3
debian/rules.defs vendored
View File

@ -1,4 +1,5 @@
include /usr/share/dpkg/default.mk
BUILD_DIR = debian/build
STAMPS_DIR = debian/stamps
TEMPLATES_DIR = debian/templates

2
debian/rules.real vendored
View File

@ -2,8 +2,6 @@ export DH_OPTIONS
include debian/rules.defs
DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
# VERSION_DEBIAN is the package source version; VERSION_DEBIAN_FULL
# includes any binNMU part.
VERSION_DEBIAN_FULL := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')