tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkupp...@apache.org
Subject incubator-tinkerpop git commit: got rid of grep -Po to make grep work on OSX
Date Sat, 19 Mar 2016 18:23:29 GMT
Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/docker 48b2b2a5f -> 6253a0195


got rid of grep -Po to make grep work on OSX


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/6253a019
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/6253a019
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/6253a019

Branch: refs/heads/docker
Commit: 6253a01953704af4cb0df5639a955aed7f59c112
Parents: 48b2b2a
Author: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Authored: Sat Mar 19 19:23:08 2016 +0100
Committer: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
Committed: Sat Mar 19 19:23:08 2016 +0100

----------------------------------------------------------------------
 docker/hadoop/install.sh | 2 +-
 docker/scripts/build.sh  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/6253a019/docker/hadoop/install.sh
----------------------------------------------------------------------
diff --git a/docker/hadoop/install.sh b/docker/hadoop/install.sh
index c9a513c..29dd9e1 100755
--- a/docker/hadoop/install.sh
+++ b/docker/hadoop/install.sh
@@ -22,7 +22,7 @@ HADOOP_BASENAME="hadoop-${HADOOP_VERSION}"
 
 [ -d "/usr/local/lib/${HADOOP_BASENAME}" ] && exit
 
-APACHE_MIRROR=$(curl -s http://www.apache.org/dyn/closer.cgi | grep -Po '(?<=<a href=").*(?="><strong>)'
| head -n1)
+APACHE_MIRROR=$(curl -s http://www.apache.org/dyn/closer.cgi | grep -o '<a href=".*"><strong>'
| cut -f2 -d '"' | head -n1)
 HADOOP_DOWNLOAD_URL="${APACHE_MIRROR}hadoop/common/${HADOOP_BASENAME}/${HADOOP_BASENAME}.tar.gz"
 
 pushd /usr/local/lib > /dev/null

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/6253a019/docker/scripts/build.sh
----------------------------------------------------------------------
diff --git a/docker/scripts/build.sh b/docker/scripts/build.sh
index 4f2d747..9513665 100755
--- a/docker/scripts/build.sh
+++ b/docker/scripts/build.sh
@@ -79,7 +79,7 @@ if [ ! -z "${BUILD_USER_DOCS}" ]; then
   bin/process-docs.sh
 
   # start a simple HTTP server
-  IP=$(ifconfig | grep -Po '(?<=inet addr:)[0-9.]*' | head -n1)
+  IP=$(ifconfig | grep -o 'inet addr:[0-9.]*' | cut -f2 -d ':' | head -n1)
   echo -e "\nDocs can be viewed under http://${IP}/\n"
   cd target/docs/htmlsingle/
   python -m SimpleHTTPServer 80


Mime
View raw message