ACCUMULO-4109 Fix for older xmllint in build.sh
* Applies to xmllint in CentOS6. Perhaps others.
* Use --shell instead of newer --xpath
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/d89846e8
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/d89846e8
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/d89846e8
Branch: refs/heads/master
Commit: d89846e8f1f14bb3e9289c085c282bb73060fb01
Parents: 34bd263
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Fri Jan 22 12:55:02 2016 -0500
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Fri Jan 22 12:55:02 2016 -0500
----------------------------------------------------------------------
assemble/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/d89846e8/assemble/build.sh
----------------------------------------------------------------------
diff --git a/assemble/build.sh b/assemble/build.sh
index 76bbb48..451422a 100755
--- a/assemble/build.sh
+++ b/assemble/build.sh
@@ -206,7 +206,7 @@ createReleaseCandidate() {
extraReleaseArgs="-DextraReleaseArgs='${extraReleaseArgs[*]}'"
local ver
- ver=$(xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' pom.xml)
+ ver=$(xmllint --shell pom.xml <<<'xpath /*[local-name()="project"]/*[local-name()="version"]/text()'
| grep content= | cut -f2 -d=)
ver=${ver%%-SNAPSHOT}
echo "Building release candidate for version: $(green "$ver")"
|