feat: add scripts for building rpm package
This commit is contained in:
parent
62a736875f
commit
e34b4b2aa2
23
rpm/oceanbase-ce-build.sh
Normal file
23
rpm/oceanbase-ce-build.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
PROJECT_DIR=$1
|
||||
PROJECT_NAME=$2
|
||||
VERSION=$3
|
||||
RELEASE=$4
|
||||
|
||||
CURDIR=$PWD
|
||||
TOP_DIR=`pwd`/../
|
||||
|
||||
echo "[BUILD] args: TOP_DIR=${TOP_DIR} PROJECT_NAME=${PROJECT_NAME} VERSION=${VERSION} RELEASE=${RELEASE}"
|
||||
|
||||
cd ${TOP_DIR}
|
||||
./build.sh clean
|
||||
./build.sh \
|
||||
rpm \
|
||||
-DOB_RELEASEID=$RELEASE \
|
||||
--init \
|
||||
--make rpm || exit 1
|
||||
|
||||
cd ${TOP_DIR}/build_rpm
|
||||
mv *.rpm $CURDIR || exit 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user