This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git
The following commit(s) were added to refs/heads/master by this push:
new 820006e update package script (#239)
820006e is described below
commit 820006e80aa6f888fdb0d7e955e6a4fdaee9223f
Author: dinglei <[email protected]>
AuthorDate: Fri Feb 14 10:10:34 2020 +0800
update package script (#239)
---
dep/build.sh | 8 ++++----
rpm/build.sh | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dep/build.sh b/dep/build.sh
index 290c9b4..88dbbfd 100644
--- a/dep/build.sh
+++ b/dep/build.sh
@@ -1,15 +1,15 @@
BASEDIR=$(dirname "$0")
-if [[ ! -d ${BASEDIR}/rocketmq_amd64/usr/local/include/ ]]; then
- mkdir -p ${BASEDIR}/rocketmq_amd64/usr/local/include/
+if [[ ! -d ${BASEDIR}/rocketmq_amd64/usr/local/include/rocketmq ]]; then
+ mkdir -p ${BASEDIR}/rocketmq_amd64/usr/local/include/rocketmq
fi
if [[ ! -d ${BASEDIR}/rocketmq_amd64/usr/local/lib ]]; then
mkdir -p ${BASEDIR}/rocketmq_amd64/usr/local/lib
fi
-cp -R ${BASEDIR}/../include/*
${BASEDIR}/rocketmq_amd64/usr/local/include/
+cp -R ${BASEDIR}/../include/*
${BASEDIR}/rocketmq_amd64/usr/local/include/rocketmq
cp ${BASEDIR}/../bin/librocketmq.so
${BASEDIR}/rocketmq_amd64/usr/local/lib/
cp ${BASEDIR}/../bin/librocketmq.a
${BASEDIR}/rocketmq_amd64/usr/local/lib/
VERSION=`cat ${BASEDIR}/rocketmq_amd64/DEBIAN/control | grep Version | awk -F
':' '{print $2}'| sed 's/^ *//'`
-dpkg-deb --build ${BASEDIR}/rocketmq_amd64 rocketmq_${VERSION}_amd64.deb
+dpkg-deb --build ${BASEDIR}/rocketmq_amd64
rocketmq-client-cpp-${VERSION}.amd64.deb
diff --git a/rpm/build.sh b/rpm/build.sh
index d87b584..326bf9d 100644
--- a/rpm/build.sh
+++ b/rpm/build.sh
@@ -15,4 +15,4 @@ cp ${BASEDIR}/rocketmq_x64/CENTOS/rocketmq-client-cpp.spec
/root/rpmbuild/S
rpmbuild -bb /root/rpmbuild/SPECS/rocketmq-client-cpp.spec
-cp /root/rpmbuild/RPMS/*.rpm ${BASEDIR}/rocketmq_x64
\ No newline at end of file
+cp /root/rpmbuild/RPMS/x86_64/*.rpm ${BASEDIR}/rocketmq_x64
\ No newline at end of file