From 13202bf4a72900502c87af79337313b547e660cf Mon Sep 17 00:00:00 2001 From: xq2005 Date: Sat, 5 Jan 2013 02:47:47 +0000 Subject: [PATCH] build deb on ubuntu server git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- build-debs-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-debs-all b/build-debs-all index f77464b18..1493c2657 100755 --- a/build-debs-all +++ b/build-debs-all @@ -30,7 +30,7 @@ fi XCAT_VERSION=`cat Version` TRUNK_REVISION=`svnversion | cut -d ":" -f1` CUR_DATE=`date +%Y%m%d` -VERSION="$XCAT_VERSION$PKG_LOCATION-rev$TRUNK_REVISION-$CUR_DATE" +VERSION="${XCAT_VERSION}-${PKG_LOCATION}${CUR_DATE}" function makedeb { SRC_ROOT=$1 @@ -48,7 +48,7 @@ function makedeb { do DIR=`echo ${DEBIAN_DIR} | sed -e 's/[/]debian$//'` cd ${DIR} - dch -v $VERSION -c debian/changelog "$BUILD_STRING" + dch -v $VERSION -b -c debian/changelog "$BUILD_STRING" dpkg-buildpackage cd - RC=$?