Skip to content
This repository was archived by the owner on Nov 16, 2019. It is now read-only.

Commit 5e399c8

Browse files
authored
replacing awk with cut.
awk does not seem to work. Please confirm. Thanks.
1 parent 2ce220a commit 5e399c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LD_LIBRARY_PATH2=${LD_LIBRARY_PATH}:${CAFFE_ON_SPARK}/caffe-public/distribute/li
1010
DYLD_LIBRARY_PATH ?=/home/y/lib64:/home/y/lib64/mkl/intel64
1111
DYLD_LIBRARY_PATH2=${DYLD_LIBRARY_PATH}:${CAFFE_ON_SPARK}/caffe-public/distribute/lib:${CAFFE_ON_SPARK}/caffe-distri/distribute/lib:/usr/lib64:/lib64
1212

13-
export SPARK_VERSION=$(shell ${SPARK_HOME}/bin/spark-submit --version 2>&1 | grep version | awk '{print $$5}' | cut -d'.' -f1)
13+
export SPARK_VERSION=$(shell ${SPARK_HOME}/bin/spark-submit --version 2>&1 | grep version | cut -d' ' -f10 | cut -d'.' -f1)
1414
ifeq (${SPARK_VERSION}, 2)
1515
export MVN_SPARK_FLAG=-Dspark2
1616
endif

0 commit comments

Comments
 (0)