Author: winnie Date: Tue Apr 22 10:24:07 2008 New Revision: 470 URL: http://svn.debian.org/wsvn/pkg-lustre/?sc=1&rev=470 Log: Correct version stuff
Modified: trunk/debian/rules Modified: trunk/debian/rules URL: http://svn.debian.org/wsvn/pkg-lustre/trunk/debian/rules?rev=470&op=diff ============================================================================== --- trunk/debian/rules (original) +++ trunk/debian/rules Tue Apr 22 10:24:07 2008 @@ -31,9 +31,10 @@ ARCH=$(shell dpkg --print-architecture) TOP_DIR:=$(shell pwd) -# Lustre version to use -VERSION=`basename $TOP_DIR |awk -F- '{print $2}'` +# Lustre version to use +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}'` # Packages PATCH_PKG=linux-patch-lustre @@ -218,6 +219,7 @@ 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 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) _______________________________________________ Pkg-lustre-svn-commit mailing list Pkg-lustre-svn-commit@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-lustre-svn-commit