You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2015/06/05 00:50:57 UTC
incubator-tinkerpop git commit: OSX'ified grep in preprocess.sh
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/preprocessor e7b5e1990 -> cea173269
OSX'ified grep in preprocess.sh
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/cea17326
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/cea17326
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/cea17326
Branch: refs/heads/preprocessor
Commit: cea173269f68678e45eeb9e5c39597b0a920513f
Parents: e7b5e19
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Fri Jun 5 00:50:30 2015 +0200
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Fri Jun 5 00:50:30 2015 +0200
----------------------------------------------------------------------
docs/preprocessor/preprocess.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/cea17326/docs/preprocessor/preprocess.sh
----------------------------------------------------------------------
diff --git a/docs/preprocessor/preprocess.sh b/docs/preprocessor/preprocess.sh
index 18427a1..4587b0e 100755
--- a/docs/preprocessor/preprocess.sh
+++ b/docs/preprocessor/preprocess.sh
@@ -43,7 +43,7 @@ cp -R docs/{static,stylesheets} target/postprocess-asciidoc/
TP_HOME=`pwd`
CONSOLE_HOME=`directory "${TP_HOME}/gremlin-console/target/apache-gremlin-console-*-standalone"`
PLUGIN_DIR="${CONSOLE_HOME}/ext"
-TP_VERSION=$(cat pom.xml | grep -A1 '<artifactId>tinkerpop</artifactId>' | grep -o 'version>[^<]*' | grep -o '>.*' | grep -o '[^>]*')
+TP_VERSION=$(cat pom.xml | grep -A1 '<artifactId>tinkerpop</artifactId>' | grep -o 'version>[^<]*' | grep -o '>.*' | cut -d '>' -f2 | head -n1)
TMP_DIR="/tmp/tp-docs-preprocessor"
trap cleanup INT