提交 e34b4b2a 编写于 作者: F Fireatoms 提交者: LINGuanRen

feat: add scripts for building rpm package

上级 62a73687
#!/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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册