Skip to content

Commit 94b3930

Browse files
committed
Update and fix scripts
1 parent a9f1bed commit 94b3930

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include(BxVersionManager)
2222

2323
# - Versioning only giving major and minor. Patch number is
2424
# 0 or automatically deduced from an external file.
25-
bx_version_set(BxRabbitMQ 0 4)
25+
bx_version_set(BxRabbitMQ 1 0)
2626

2727
#-----------------------------------------------------------------------
2828
# - Standard UNIX Tool install paths, including relative paths for use

cmake/BxPackageVersions.db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and update through a PATCH number:
33
0.3.1
44
0.4.3
5-
#1.0.0
5+
1.0.0
66
#1.1.0
77
#1.2.0
88
# end

tools/README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ README
66

77
.. code:: bash
88
9-
$ boost_1_69_setup
10-
$ bxjsontools_setup
11-
$ ./tools/build.sh --boost-root /scratch/ubuntu18.04/BxInstall/boost-1.69.0 --mgr
9+
$ bxjsontools_1_0_0_setup
10+
$ ./tools/build.sh --with-manager
1211
1312
1413
..

tools/build.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ while [ -n "$1" ]; do
4646
if [ "${opt}" = "--help" ]; then
4747
do_usage
4848
my_exit 0
49-
elif [ "${opt}" = "--mgr" ]; then
49+
elif [ "${opt}" = "--mgr" -o "${opt}" = "--with-manager" ]; then
5050
with_management=true
5151
elif [ "${opt}" = "--boost-root" ]; then
5252
shift 1
@@ -62,6 +62,11 @@ done
6262

6363
if [ ${with_management} = true ]; then
6464
if [ "x${bxjsontools_prefix}" = "x" ]; then
65+
which bxjsontools-query > /dev/null 2>&1
66+
if [ $? -ne 0 ]; then
67+
echo >&2 "[error] No 'bxjsontools-query' script! Abort!"
68+
my_exit 1
69+
fi
6570
bxjsontools_prefix=$(bxjsontools-query --cmakedir)
6671
fi
6772
fi
@@ -115,16 +120,18 @@ boost_option=""
115120
if [ "x${boost_root}" != "x" ]; then
116121
boost_option="-DBOOST_ROOT=${boost_root}"
117122
fi
118-
with_mgr_opts=""
123+
124+
manager_optionss=""
119125
if [ ${with_management} = true ]; then
120-
with_mgr_opts="-DBxJsontools_DIR=${bxjsontools_prefix}"
126+
manager_optionss="-DBxJsontools_DIR=${bxjsontools_prefix}"
121127
fi
128+
122129
cmake \
123130
-DCMAKE_INSTALL_PREFIX="${install_dir}" \
124131
${boost_option} \
125132
-DBXRABBITMQ_WITH_MANAGER=${with_management} \
126133
-DBXRABBITMQ_ENABLE_TESTING=${with_tests} \
127-
${with_mgr_opts} \
134+
${manager_optionss} \
128135
${src_dir}
129136
if [ $? -ne 0 ]; then
130137
echo >&2 "[error] CMake failed! Abort!"

0 commit comments

Comments
 (0)