summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-11-21 21:20:01 +0000
committerSteven Shaw <steshaw@apache.org>2006-11-21 21:20:01 +0000
commitf76fc3ae5553d28e87a86c76529ff796dc01e197 (patch)
tree82a923cf070e11c6598ac7bdf76c8f002d6252ad /cpp
parent376ea0f9210403f93068e29a49934b70c9be4459 (diff)
downloadqpid-python-f76fc3ae5553d28e87a86c76529ff796dc01e197.tar.gz
QPID-121 Added script to build a release package of qpid cpp client.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477895 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/README.rhel37
-rwxr-xr-xcpp/release.client.rhel357
-rw-r--r--cpp/test/client/Makefile.cppclient.examples2
3 files changed, 65 insertions, 1 deletions
diff --git a/cpp/README.rhel3 b/cpp/README.rhel3
index 17e0c0ed87..58d1ac765f 100644
--- a/cpp/README.rhel3
+++ b/cpp/README.rhel3
@@ -13,3 +13,10 @@ Build using the following command:
$ ./build.rhel3
+Generate cppclient tarball:
+
+ $ ./release.client.rhel3
+
+or if you want to name the release:
+
+ $ ./release.client.rhel3 1.0-RC1
diff --git a/cpp/release.client.rhel3 b/cpp/release.client.rhel3
new file mode 100755
index 0000000000..7d66564542
--- /dev/null
+++ b/cpp/release.client.rhel3
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+if [[ $# -eq 1 ]]; then
+ name=$1
+elif [[ $# -ne 0 ]]; then
+ echo "usage: $0 [release-name]"
+ exit 2
+else
+ # Default the name to the svn revision
+ svnRevision=$(svn info | grep ^Revision: | awk '{print $2}')
+ name=r${svnRevision}
+fi
+
+name=qpid-cppclient-$name
+dir=build/$name
+
+if [[ -d $dir ]]; then
+ echo "$dir already exists"
+ exit 2
+fi
+
+mkdir $dir
+
+#
+# Copy over libs.
+#
+mkdir $dir/lib
+cp \
+ build/apr-release/lib/libqpid_client.so.1.0 \
+ build/apr-release/lib/libqpid_common.so.1.0 \
+ $dir/lib
+cp -r ~/local/apr-1.2.7 $dir/lib
+cp -r ~/local/boost-1.33.1 $dir/lib
+
+#
+# Copy over headers.
+#
+
+cp -r src $dir/include
+cp build/gen/qpid/framing/*.h $dir/include/qpid/framing
+# remove .svn directories
+find $dir/include -type d -name .svn | xargs rm -r
+# remove .cpp source files
+find $dir/include -type f -name \*.cpp | xargs rm
+
+#
+# Copy over examples.
+#
+mkdir $dir/examples
+cp test/client/*.cpp $dir/examples
+cp test/client/Makefile.cppclient.examples $dir/examples/Makefile
+
+#
+# Build tarball
+#
+cd build
+tar -cvjf $name.tar.bz2 $name
diff --git a/cpp/test/client/Makefile.cppclient.examples b/cpp/test/client/Makefile.cppclient.examples
index 57968839f4..bcdb09d2a1 100644
--- a/cpp/test/client/Makefile.cppclient.examples
+++ b/cpp/test/client/Makefile.cppclient.examples
@@ -17,7 +17,7 @@ CXXFLAGS := $(CXXFLAGS) $(BOOST_CFLAGS)
# Configure APR.
#
APR_LOCATION := ../lib/apr-1.2.7
-APR_CFLAGS := -I$(APR_LOCATION)/include
+APR_CFLAGS := -I$(APR_LOCATION)/include/apr-1
APR_LDFLAGS := $(shell $(APR_LOCATION)/bin/apr-1-config --libs) -L$(APR_LOCATION)/lib -lapr-1
CXXFLAGS := $(CXXFLAGS) $(APR_CFLAGS)