[kernel] r12991 - dists/trunk/redhat-cluster/openais/debian
Bastian Blank
waldi at alioth.debian.org
Sat Mar 7 11:49:34 UTC 2009
Author: waldi
Date: Sat Mar 7 11:49:33 2009
New Revision: 12991
Log:
debian/rules: Support epoches.
Modified:
dists/trunk/redhat-cluster/openais/debian/rules
Modified: dists/trunk/redhat-cluster/openais/debian/rules
==============================================================================
--- dists/trunk/redhat-cluster/openais/debian/rules (original)
+++ dists/trunk/redhat-cluster/openais/debian/rules Sat Mar 7 11:49:33 2009
@@ -4,7 +4,8 @@
# export DH_VERBOSE=1
SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p')
-VERSION := $(shell dpkg-parsechangelog | perl -ne '/^Version:\s+(\S+)-[^-]+$$/ && print $$1;')
+VERSION_DEBIAN := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
+VERSION_FILE := $(shell echo "$(VERSION_DEBIAN)" | sed -e 's,^[0-9]*:,,' -e 's,-[^-]*$$,,')
BUILD_DIR = debian/build
STAMPS_DIR = debian/stamps
@@ -79,8 +80,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