[Pkg-lustre-svn-commit] updated: [aa7b4a7] Add minor-version number to lustre-module package
Patrick Winnertz
winnie at debian.org
Wed Apr 8 09:22:24 UTC 2009
The following commit has been merged in the master branch:
commit aa7b4a72b25487c6846d4ea27bd0f46676cface6
Author: Patrick Winnertz <winnie at debian.org>
Date: Mon Apr 6 14:58:25 2009 +0200
Add minor-version number to lustre-module package
Signed-off-by: Patrick Winnertz <winnie at debian.org>
diff --git a/debian/rules b/debian/rules
index ccc5b37..2dcb8a1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,7 @@ TOP_DIR:=$(shell pwd)
VERSION=`cat $(TOP_DIR)/debian/lustre-version`
SUPPORTED_KERNELS=2.6.18 2.6.20 2.6.22
UPVERSION=`basename $(TOP_DIR) | awk -F- '{print $$2}'`
+UPMINVERSION=`head -n1 $(TOP_DIR)debian/changelog | awk '{print $$2}' | awk -F- '{print $$2}' | sed -e 's/[()]//g'`
# Packages
PATCH_PKG=linux-patch-lustre
@@ -221,7 +222,7 @@ binary-$(SOURCE_PKG): build-stamp
debian/$(SOURCE_PKG)/usr/src/modules/lustre/debian/patches/*
$(MAKE) -C debian/$(SOURCE_PKG)/usr/src/modules/lustre -f debian/rules clean
# Create the module-source tarball.
- echo $(UPVERSION) > debian/$(SOURCE_PKG)/usr/src/modules/lustre/debian/lustre-version
+ echo $(UPVERSION)-$(UPMINVERSION) > debian/$(SOURCE_PKG)/usr/src/modules/lustre/debian/lustre-version
cd debian/$(SOURCE_PKG)/usr/src && tar jcf lustre.tar.bz2 modules
rm -rf debian/$(SOURCE_PKG)/usr/src/modules
dh_install -p$(SOURCE_PKG)
--
Lustre Debian Packaging
More information about the Pkg-lustre-svn-commit
mailing list