diff --git a/rpm/libobclient-build.sh b/rpm/libobclient-build.sh index 148db51..07e139e 100644 --- a/rpm/libobclient-build.sh +++ b/rpm/libobclient-build.sh @@ -3,23 +3,10 @@ # Usage: obclient-build.sh # Usage: obclient-build.sh -REDHAT=`cat /etc/redhat-release|cut -d " " -f 7|cut -d "." -f 1` - -if [ $# -ne 4 ] -then - TOP_DIR=`pwd`/../ - PACKAGE=$(basename $0 -build.sh) - VERSION=`cat ${PACKAGE}-VER.txt` - RELEASE="1" -#RELEASE="dev.el${REDHAT}" -else - TOP_DIR=$1 - PACKAGE=$2 - VERSION=$3 - RELEASE="$4.el${REDHAT}" - export AONE_BUILD_NUMBER=${4} -fi -echo "[BUILD] args: TOP_DIR=${TOP_DIR} PACKAGE=${PACKAGE} VERSION=${VERSION} RELEASE=${RELEASE} AONE_BUILD_NUMBER=${AONE_BUILD_NUMBER}" +TOP_DIR=$1 +PACKAGE=$2 +VERSION=$3 +RELEASE=$4 TMP_DIR=${TOP_DIR}/${PACKAGE}-tmp.$$ BOOST_DIR=${TMP_DIR}/BOOST