You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2021/01/14 09:36:46 UTC
[ozone] branch master updated: HDDS-4671. Use mvn to get
ozone.version instead of complex shell commands (addendum) (#1794)
This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 01a5785 HDDS-4671. Use mvn to get ozone.version instead of complex shell commands (addendum) (#1794)
01a5785 is described below
commit 01a5785fae217cadd623f3cd15cf69d01cccc786
Author: Hui Fei <fe...@apache.org>
AuthorDate: Thu Jan 14 17:36:32 2021 +0800
HDDS-4671. Use mvn to get ozone.version instead of complex shell commands (addendum) (#1794)
---
hadoop-hdds/docs/dev-support/bin/generate-site.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hadoop-hdds/docs/dev-support/bin/generate-site.sh b/hadoop-hdds/docs/dev-support/bin/generate-site.sh
index c131cb6..3d7baa8 100755
--- a/hadoop-hdds/docs/dev-support/bin/generate-site.sh
+++ b/hadoop-hdds/docs/dev-support/bin/generate-site.sh
@@ -24,7 +24,7 @@ if [ ! "$(which hugo)" ]; then
exit 0
fi
-export OZONE_VERSION=$(grep "<ozone.version>" "${DOCDIR}/../../pom.xml" | sed 's/<[^>]*>//g'| sed 's/^[ \t]*//')
+export OZONE_VERSION=$(mvn help:evaluate -Dexpression=ozone.version -q -DforceStdout)
ENABLE_GIT_INFO=
if git -C $(pwd) status >& /dev/null; then
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org