You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by el...@apache.org on 2016/06/01 17:47:06 UTC
[2/4] phoenix git commit: [PHOENIX-2955] replace xpath to xmllint at
make_rc.sh fix problem: "Cannot open file -q at
/System/Library/Perl/Extras/5.18/XML/XPath.pm line 53." use `xmllint` relace
xpath for parse phoenix name in pom.xml
[PHOENIX-2955] replace xpath to xmllint at make_rc.sh
fix problem:
"Cannot open file -q at /System/Library/Perl/Extras/5.18/XML/XPath.pm line 53."
use `xmllint` relace xpath for parse phoenix name in pom.xml
Closes apache/phoenix#170
Signed-off-by: Josh Elser <el...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/8cbec765
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/8cbec765
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/8cbec765
Branch: refs/heads/4.x-HBase-1.1
Commit: 8cbec765f718ca4b0e42b510b29cbe35341162ea
Parents: e3f7078
Author: shijinkui <sh...@163.com>
Authored: Tue May 31 23:05:24 2016 +0800
Committer: Josh Elser <el...@apache.org>
Committed: Wed Jun 1 13:46:20 2016 -0400
----------------------------------------------------------------------
dev/make_rc.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/8cbec765/dev/make_rc.sh
----------------------------------------------------------------------
diff --git a/dev/make_rc.sh b/dev/make_rc.sh
index 288bfdf..794ac30 100755
--- a/dev/make_rc.sh
+++ b/dev/make_rc.sh
@@ -28,7 +28,7 @@ echo "Starting...";sleep 2s
# Set directory variables
DIR_ROOT="$(cd $(dirname $0);pwd)/.."
cd $DIR_ROOT
-PHOENIX="$(xpath -q -e '/project/version/text()' pom.xml)"
+PHOENIX="$(xmllint --xpath "//*[local-name()='project']/*[local-name()='version']/text()" pom.xml)"
DIR_REL_BASE=$DIR_ROOT/release
DIR_REL_ROOT=$DIR_REL_BASE/phoenix-$PHOENIX
DIR_REL_BIN=phoenix-$PHOENIX-bin