Use dpkg provided make-snippets
svn path=/dists/trunk/linux-tools/; revision=22772
This commit is contained in:
parent
b4ca8fe3f8
commit
ab2a55f5f2
|
@ -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,-[^-]*$$,,')
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
include /usr/share/dpkg/default.mk
|
||||
|
||||
BUILD_DIR = debian/build
|
||||
STAMPS_DIR = debian/stamps
|
||||
TEMPLATES_DIR = debian/templates
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue