[kernel] r12990 - dists/trunk/redhat-cluster/redhat-cluster/debian

Bastian Blank waldi at alioth.debian.org
Sat Mar 7 11:49:07 UTC 2009


Author: waldi
Date: Sat Mar  7 11:49:05 2009
New Revision: 12990

Log:
debian/rules: Support epoches.


Modified:
   dists/trunk/redhat-cluster/redhat-cluster/debian/rules

Modified: dists/trunk/redhat-cluster/redhat-cluster/debian/rules
==============================================================================
--- dists/trunk/redhat-cluster/redhat-cluster/debian/rules	(original)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/rules	Sat Mar  7 11:49:05 2009
@@ -8,7 +8,7 @@
 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_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,-[^-]*$$,,')
+VERSION_FILE := $(shell echo "$(VERSION_DEBIAN)" | sed -e 's,^[0-9]*:,,' -e 's,-[^-]*$$,,')
 
 xen_arches = amd64 i386
 ifneq (,$(filter $(DEB_HOST_ARCH), $(xen_arches))) 
@@ -136,8 +136,8 @@
 
 binary: binary-arch binary-indep 
 
-DIR_ORIG = ../orig/$(SOURCE)-$(VERSION)
-TAR_ORIG_NAME = $(SOURCE)_$(VERSION).orig.tar.gz
+DIR_ORIG = ../orig/$(SOURCE)-$(VERSION_FILE)
+TAR_ORIG_NAME = $(SOURCE)_$(VERSION_FILE).orig.tar.gz
 TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME)))
 
 orig: $(DIR_ORIG)



More information about the Kernel-svn-changes mailing list