未验证 提交 9dbb6b71 编写于 作者: R Rongfeng Fu 提交者: GitHub

buid O (#77)

上级 5d01f64b
...@@ -108,7 +108,7 @@ function build() ...@@ -108,7 +108,7 @@ function build()
CID=`git log |head -n1 | awk -F' ' '{print $2}'` CID=`git log |head -n1 | awk -F' ' '{print $2}'`
BRANCH=`git branch | grep -e "^\*" | awk -F' ' '{print $2}'` BRANCH=`git branch | grep -e "^\*" | awk -F' ' '{print $2}'`
DATE=`date '+%b %d %Y %H:%M:%S'` DATE=`date '+%b %d %Y %H:%M:%S'`
VERSION=$VERSION".`date +%s`"` VERSION="$VERSION".`date +%s`
BUILD_DIR="$DIR/.build" BUILD_DIR="$DIR/.build"
rm -fr $BUILD_DIR rm -fr $BUILD_DIR
mkdir -p $BUILD_DIR/lib/site-packages mkdir -p $BUILD_DIR/lib/site-packages
......
...@@ -12,6 +12,8 @@ if [[ x"$PYTHON3_SWITCH" == x"" ]]; then ...@@ -12,6 +12,8 @@ if [[ x"$PYTHON3_SWITCH" == x"" ]]; then
fi fi
CURDIR=$PWD CURDIR=$PWD
DIR=`dirname $0`
cd $DIR
echo "[BUILD] args: CURDIR=${CURDIR} PROJECT_NAME=${PROJECT_NAME} VERSION=${VERSION} RELEASE=${RELEASE}" echo "[BUILD] args: CURDIR=${CURDIR} PROJECT_NAME=${PROJECT_NAME} VERSION=${VERSION} RELEASE=${RELEASE}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册