Skip to content

Modify deploy shell to package license and notice file #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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