This is an automated email from the ASF dual-hosted git repository.
kpvdr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-interop-test.git
The following commit(s) were added to refs/heads/main by this push:
new a32f97d Changed script build.sh to local-build.sh
a32f97d is described below
commit a32f97d25afd35d5c4909eda7f04dbea788eff8e
Author: Kim van der Riet <[email protected]>
AuthorDate: Wed May 5 12:16:59 2021 -0400
Changed script build.sh to local-build.sh
---
local-build.sh | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/local-build.sh b/local-build.sh
new file mode 100755
index 0000000..be22321
--- /dev/null
+++ b/local-build.sh
@@ -0,0 +1,26 @@
+#! /bin/bash
+
+RH_CORE_DIR=${HOME}/RedHat/rh-core
+LOCAL_INSTALL_DIR=${HOME}/RedHat/cicd/jenkins-qit/install
+PROTON_DIR=${RH_CORE_DIR}/install/lib64/cmake/Proton
+PROTONCPP_DIR=${RH_CORE_DIR}/install/lib64/cmake/ProtonCpp
+RHEA_DIR=${RH_CORE_DIR}/rhea
+
+if [ -z ${JAVA_HOME} ]; then
+ export JAVA_HOME=$(dirname $(dirname $(alternatives --display javac | grep
'javac' | grep 'link' | awk '{print $NF}')))
+fi
+echo "JAVA_HOME=${JAVA_HOME}"
+
+if [ -d build ]; then
+ if [ -d build.old ]; then
+ rm -rf build.old
+ fi
+ mv build build.old
+fi
+mkdir build
+cd build
+
+cmake -DProton_DIR=${PROTON_DIR} -DProtonCpp_DIR=${PROTONCPP_DIR}
-DRHEA_DIR=${RHEA_DIR} -DCMAKE_INSTALL_PREFIX=${LOCAL_INSTALL_DIR} ..
+make install
+
+cd ..
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]