[kernel] r22773 - dists/trunk/linux-tools/debian
Bastian Blank
waldi at moszumanska.debian.org
Sun Jun 28 19:30:14 UTC 2015
Author: waldi
Date: Sun Jun 28 19:30:14 2015
New Revision: 22773
Log:
Use pre-defined version variables
Modified:
dists/trunk/linux-tools/debian/rules
dists/trunk/linux-tools/debian/rules.real
Modified: dists/trunk/linux-tools/debian/rules
==============================================================================
--- dists/trunk/linux-tools/debian/rules Sun Jun 28 19:00:39 2015 (r22772)
+++ dists/trunk/linux-tools/debian/rules Sun Jun 28 19:30:14 2015 (r22773)
@@ -1,10 +1,7 @@
#!/usr/bin/make -f
SHELL := sh -e
-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,-[^-]*$$,,')
-VERSION_DEBIAN_BINNMU := $(shell echo "$(VERSION_DEBIAN)" | sed -ne 's,.*\+b\(.*\)$$,\1,p')
+VERSION_DEBIAN_BINNMU := $(shell echo "$(DEB_VERSION)" | sed -ne 's,.*\+b\(.*\)$$,\1,p')
include debian/rules.defs
@@ -21,8 +18,8 @@
$(STAMPS_DIR):
@[ -d $@ ] || mkdir $@
-DIR_ORIG = ../orig/$(SOURCE)-$(VERSION)
-TAR_ORIG_NAME = $(SOURCE)_$(VERSION).orig.tar.xz
+DIR_ORIG = ../orig/$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)
+TAR_ORIG_NAME = $(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.xz
TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME)))
orig: $(DIR_ORIG)
Modified: dists/trunk/linux-tools/debian/rules.real
==============================================================================
--- dists/trunk/linux-tools/debian/rules.real Sun Jun 28 19:00:39 2015 (r22772)
+++ dists/trunk/linux-tools/debian/rules.real Sun Jun 28 19:30:14 2015 (r22773)
@@ -2,10 +2,6 @@
include debian/rules.defs
-# 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')
-
binary-arch: install-kbuild install-usbip install-hyperv-daemons
ifneq ($(filter alpha amd64 arm64 armel armhf hppa i386 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sh4 sparc sparc64 x32,$(DEB_BUILD_ARCH)),)
binary-arch: install-tools
@@ -76,8 +72,8 @@
dh_fixperms
dh_installdeb
dh_shlibdeps
- test -n "$(VERSION)" -a -n "$(VERSION_DEBIAN_FULL)"
- dh_gencontrol -- -v$(VERSION)+$(VERSION_DEBIAN_FULL)
+ test -n "$(VERSION)" -a -n "$(DEB_VERSION)"
+ dh_gencontrol -- -v$(VERSION)+$(DEB_VERSION)
dh_md5sums
dh_builddeb
More information about the Kernel-svn-changes
mailing list