[kernel] r5348 - dists/trunk/linux-2.6/debian
Sven Luther
luther at costa.debian.org
Sun Jan 8 14:33:16 UTC 2006
Author: luther
Date: Sun Jan 8 14:33:15 2006
New Revision: 5348
Modified:
dists/trunk/linux-2.6/debian/rules
Log:
Now calculate SOURCE_VERSION and REVISIONS from the changelog, not the most efficient way, but hey :)
Modified: dists/trunk/linux-2.6/debian/rules
==============================================================================
--- dists/trunk/linux-2.6/debian/rules (original)
+++ dists/trunk/linux-2.6/debian/rules Sun Jan 8 14:33:15 2006
@@ -89,9 +89,8 @@
CheckConfs_DIR := $(CURDIR)/debian/build/check
CheckConfs_srcfiles := $(filter-out debian, $(wildcard *))
-# TODO : need to grab those directly from the changelog or whatever.
-CheckConfs_SOURCE_VERSION := 2.6.15-2
-CheckConfs_REVISIONS := 1 2
+CheckConfs_SOURCE_VERSION := ${shell a=`head -n 1 debian/changelog`; a=$${a%%\)*}; a=$${a\#\#*\(}; echo $$a}
+CheckConfs_REVISIONS := ${shell a=$(CheckConfs_SOURCE_VERSION); a=$${a\#\#*-}; b=1; while [ $$b -lt $$a ]; do echo -n "$$b "; b=$$(($$b+1)); done; echo $$b}
$(CheckConfs_DIR) source-configs:
rm -rf '$(CheckConfs_DIR)'
More information about the Kernel-svn-changes
mailing list