vongosling closed pull request #22: Add description for Mac platform and delete 
key world function for build.sh
URL: https://github.com/apache/rocketmq-client-cpp/pull/22
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index 32b797ce..6df5dd8c 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ RocketMQ-Client-CPP is the C/C++ client of Apache RocketMQ 
which is a distribute
 
 - C and C++ API, include both C style and C++ style apis.
 
-- across platform, all features are supported on both windows and linux system.
+- across platform, all features are supported on Windows, Linux and Mac OS.
 
 - low latency, publish latency < 2ms, subscribe latency < 10ms
 
@@ -33,7 +33,7 @@ doc/rocketmq-cpp_manaual_zh.docx
 
 ## Build and Install ##
 
-### Linux platform ###
+### Linux and Mac OS ###
 
 **note**: *make sure the following compile tools or libraries with them 
minimum version number have been installed before run the build script build.sh*
 
@@ -57,7 +57,7 @@ Finally, both librocketmq.a and librocketmq.so are saved in 
rocketmq-client-cpp/
 
     g++ -o consumer_example consumer_example.cpp -lrocketmq -lpthread -lz -ldl 
-lrt
 
-### Windows platform: ###
+### Windows ###
 **note**: *make sure the following compile tools or libraries with them 
minimum version number have been installed before run the build script 
win32_build.bat*
 - compile tools:
        - vs2015: libevent,jsoncpp,zlib,boost rocket-client require it
diff --git a/build.sh b/build.sh
index 0aa28027..0446ffca 100644
--- a/build.sh
+++ b/build.sh
@@ -11,7 +11,7 @@ fname_libevent_down="release-2.0.22-stable.zip"
 fname_jsoncpp_down="0.10.6.zip"
 fname_boost_down="1.58.0/boost_1_58_0.tar.gz"
 
-function Help()
+Help()
 {
     echo "=========================================one key build 
help============================================"
     echo "sh build.sh [build libevent:0/1 default:1] [build json:0/1 
default:1] [build boost:0/1 default:1]"
@@ -63,7 +63,7 @@ else
     need_build_boost=1
 fi
 
-function PrintParams()
+PrintParams()
 {
     echo 
"###########################################################################"
     echo "need_build_libevent: ${need_build_libevent}, 
need_build_jsoncpp:${need_build_jsoncpp}, need_build_boost:${need_build_boost}"
@@ -71,7 +71,7 @@ function PrintParams()
     echo ""
 }
 
-function Prepare()
+Prepare()
 {
     if [ -e ${down_dir} ]
     then
@@ -122,7 +122,7 @@ function Prepare()
     fi
 }
 
-function BuildLibevent()
+BuildLibevent()
 {
     if [ "${need_build_libevent}" == "0" ];then
         echo "no need build libevent lib"
@@ -162,8 +162,7 @@ function BuildLibevent()
     make install
 }
 
-
-function BuildJsonCPP()
+BuildJsonCPP()
 {
     if [ "${need_build_jsoncpp}" == "0" ];then
         echo "no need build jsoncpp lib"
@@ -200,7 +199,7 @@ function BuildJsonCPP()
     make install
 }
 
-function BuildBoost()
+BuildBoost()
 {
     if [ "${need_build_boost}" == "0" ];then
         echo "no need build boost lib"
@@ -231,7 +230,7 @@ function BuildBoost()
     fi
 }
 
-function BuildRocketMQClient()
+BuildRocketMQClient()
 {
     cd ${build_dir}
     cmake ..
@@ -243,7 +242,7 @@ function BuildRocketMQClient()
     PackageRocketMQStatic
 }
 
-function PackageRocketMQStatic()
+PackageRocketMQStatic()
 {
     #packet libevent,jsoncpp,boost,rocketmq,Signature to one librocketmq.a
     cp -f ${basepath}/libs/signature/lib/libSignature.a ${install_lib_dir}/lib
@@ -256,4 +255,4 @@ Prepare
 BuildLibevent
 BuildJsonCPP
 BuildBoost
-BuildRocketMQClient
\ No newline at end of file
+BuildRocketMQClient


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to