Skip to content

Commit

Permalink
update package script (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShannonDing authored Feb 14, 2020
1 parent 0648508 commit 820006e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dep/build.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion rpm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
cp /root/rpmbuild/RPMS/x86_64/*.rpm ${BASEDIR}/rocketmq_x64

0 comments on commit 820006e

Please sign in to comment.