Skip to content

Commit

Permalink
Modify deploy shell to package license and notice file
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnxu authored Aug 18, 2019
2 parents 1020914 + 6ba65e1 commit 32fb1c8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions deploy.sh → distribution/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,31 @@
# limitations under the License.


VERSION="rocketmq-client-cpp"
VERSION="1.2.3"
PKG_NAME="rocketmq-client-cpp"
CWD_DIR=$(cd "$(dirname "$0")"; pwd)
DEPLOY_BUILD_HOME=${CWD_DIR}/${VERSION}
DEPLOY_BUILD_HOME=${CWD_DIR}/${PKG_NAME}

# ##====================================================================
#make
# ##====================================================================
# # deploy
rm -rf ${DEPLOY_BUILD_HOME}
mkdir -p ${DEPLOY_BUILD_HOME}/lib
cp -rf ${CWD_DIR}/bin/*.a ${DEPLOY_BUILD_HOME}/lib/
cp -rf ${CWD_DIR}/bin/*.so ${DEPLOY_BUILD_HOME}/lib/
cp -rf ${CWD_DIR}/include ${DEPLOY_BUILD_HOME}/
cp -rf ${CWD_DIR}/example ${DEPLOY_BUILD_HOME}/
cp -rf ${CWD_DIR}/README.md ${DEPLOY_BUILD_HOME}/
cp -rf ${CWD_DIR}/../bin/*.a ${DEPLOY_BUILD_HOME}/lib/
if test "$(uname)" = "Linux"; then
cp -rf ${CWD_DIR}/../bin/*.so ${DEPLOY_BUILD_HOME}/lib/
fi
if test "$(uname)" = "Darwin"; then
cp -rf ${CWD_DIR}/../bin/*.dylib ${DEPLOY_BUILD_HOME}/lib/
fi
cp -rf ${CWD_DIR}/../include ${DEPLOY_BUILD_HOME}/
cp -rf ${CWD_DIR}/../example ${DEPLOY_BUILD_HOME}/
cp -rf ${CWD_DIR}/../README.md ${DEPLOY_BUILD_HOME}/
cp -rf ${CWD_DIR}/LICENSE-BIN ${DEPLOY_BUILD_HOME}/LICENSE
cp -rf ${CWD_DIR}/NOTICE-BIN ${DEPLOY_BUILD_HOME}/NOTICE

cd ${CWD_DIR} && tar -cvzf ./${VERSION}.tar.gz ./${VERSION} >/dev/null 2>&1
cd ${CWD_DIR} && tar -cvzf ./${PKG_NAME}-${VERSION}-bin-release.tar.gz ./${PKG_NAME} >/dev/null 2>&1
rm -rf ${DEPLOY_BUILD_HOME}
# # ##====================================================================
#make clean

0 comments on commit 32fb1c8

Please sign in to comment.