Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of https://github.com/somnathbghule/cortx-motr in…
Browse files Browse the repository at this point in the history
…to sg/m0crate-fixes
  • Loading branch information
root committed Mar 1, 2021
2 parents ff2b269 + 83f069b commit 2a49a0a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,36 @@
# For any questions about this software or licensing,
# please email opensource@seagate.com or cortx-questions@seagate.com.
#
regex="^([0-9]+)\.([0-9]+)\.([0-9]+)$"

while getopts "hv:" arg; do
case $arg in
h)
echo "Usage:"
echo " -h Help"
echo " -v VERSION RPM version number"
echo " Must be numeric with two dot(.)"
echo " Example: 1.3.20"
exit 0
;;
v)
version=$OPTARG
echo RPM version: "$version"
if [[ "$version" =~ $regex ]]
then
MAJOR=$(echo "$version" | cut -d "." -f 1)
MINOR=$(echo "$version" | cut -d "." -f 2)
PATCH=$(echo "$version" | cut -d "." -f 3)
sed -i "/m4_define(\[M0_VERSION_MAJOR],/c\m4_define([M0_VERSION_MAJOR],[$MAJOR])" configure.ac
sed -i "/m4_define(\[M0_VERSION_MINOR],/c\m4_define([M0_VERSION_MINOR],[$MINOR])" configure.ac
sed -i "/m4_define(\[M0_VERSION_PATCH],/c\m4_define([M0_VERSION_PATCH],[$PATCH])" configure.ac
else
echo "RPM version must be numeric with two dot(.). Example: 1.3.20"
exit 1
fi
;;
*)
;;
esac
done
autoreconf --install --force
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ AC_SUBST([LT_RELEASE], [$PACKAGE_VERSION])
#
# See also
# https://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning
AC_SUBST([LT_VERSION], [M0_VERSION_MAJOR:M0_VERSION_MINOR:M0_VERSION_PATCH])
AC_SUBST([LT_VERSION], [M0_VERSION_MAJOR:M0_VERSION_MINOR:0])

# the following variables are only for internal use within this configure script
# external scripts should use collection of variables, which is automatically
Expand Down
4 changes: 2 additions & 2 deletions doc/motr-developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ features.
The first document developers should read is: [Motr Client API](/motr/client.h).
It explains basic notations, terminologies, and data structures in CORTX Motr.
Example motr client applications can be found in our [motr client apps repo](https://github.com/Seagate/cortx-motr-apps)
and an alternative higher-level interface to motr can be found in out [Maestro repo](https://github.com/Seagate/cortx-mio).
and an alternative higher-level interface to motr can be found in our [Maestro repo](https://github.com/Seagate/cortx-mio).
Developers are also assumed having a running CORTX Motr system: please refer to
[Cluster Setup](https://github.com/Seagate/Cortx/blob/main/doc/Cluster_Setup.md) and [Quick Start Guide](/doc/Quick-Start-Guide.rst). For debugging, ADDB can be
very useful and is described in these [two](ADDB.rst) [documents](addb2-primer).
Expand Down Expand Up @@ -334,7 +334,7 @@ The steps to compile, build and run this example.
* A Cortx Motr performance utility:
* m0crate: motr/m0crate/
* A Cortx Motr GO bindings:
* bindings/go/mio/
* [bindings/go/mio/](/bindings/go)
* A Cortx Motr HSM utility and application:
* hsm/
* A Cortx Motr Python wrapper:
Expand Down

0 comments on commit 2a49a0a

Please sign in to comment.