Skip to content

Commit

Permalink
update rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzelin19961202 committed Jul 11, 2022
1 parent 3349678 commit 69ad628
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions rpm/libobclient-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,10 @@
# Usage: obclient-build.sh <oceanbasepath> <package> <version> <release>
# 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
Expand Down

0 comments on commit 69ad628

Please sign in to comment.