[Glibc-bsd-commits] r4677 - trunk/kfreebsd-kernel-headers/debian
rmh at alioth.debian.org
rmh at alioth.debian.org
Mon Jul 8 12:48:57 UTC 2013
Author: rmh
Date: 2013-07-03 18:16:29 +0000 (Wed, 03 Jul 2013)
New Revision: 4677
Modified:
trunk/kfreebsd-kernel-headers/debian/changelog
trunk/kfreebsd-kernel-headers/debian/rules
Log:
Extract version number from changelog
Modified: trunk/kfreebsd-kernel-headers/debian/changelog
===================================================================
--- trunk/kfreebsd-kernel-headers/debian/changelog 2013-07-02 23:48:39 UTC (rev 4676)
+++ trunk/kfreebsd-kernel-headers/debian/changelog 2013-07-03 18:16:29 UTC (rev 4677)
@@ -1,4 +1,4 @@
-kfreebsd-kernel-headers (0.85) UNRELEASED; urgency=low
+kfreebsd-kernel-headers (9.0-1) UNRELEASED; urgency=low
* patches/param_collision.diff: Fix DEV_BSIZE collision (in
<sys/param.h>).
Modified: trunk/kfreebsd-kernel-headers/debian/rules
===================================================================
--- trunk/kfreebsd-kernel-headers/debian/rules 2013-07-02 23:48:39 UTC (rev 4676)
+++ trunk/kfreebsd-kernel-headers/debian/rules 2013-07-03 18:16:29 UTC (rev 4677)
@@ -7,17 +7,18 @@
DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+full_version := $(shell dpkg-parsechangelog | grep ^Version: | sed -e 's/^.*: //g')
+version := $(shell echo $(full_version) | sed -e 's/[~+-].*//g')
+major := $(shell echo $(version) | sed -e 's/\..*//g')
+
ifeq ($(DEB_HOST_ARCH_CPU), mipsel)
kfreebsd_cpu := mips
else
kfreebsd_cpu := $(DEB_HOST_ARCH_CPU)
endif
-major=9
-minor=0
-
HEADERS_PACKAGE := $(CURDIR)/debian/kfreebsd-kernel-headers
-SRC_TAR := /usr/src/kfreebsd-source-$(major).$(minor).tar.xz
+SRC_TAR := /usr/src/kfreebsd-source-$(version).tar.xz
clean:
dh_testdir
More information about the Glibc-bsd-commits
mailing list