diff options
Diffstat (limited to 'tensorflow/contrib/makefile/download_dependencies.sh')
-rwxr-xr-x | tensorflow/contrib/makefile/download_dependencies.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tensorflow/contrib/makefile/download_dependencies.sh b/tensorflow/contrib/makefile/download_dependencies.sh index 3fc841edd0..e6622a26e9 100755 --- a/tensorflow/contrib/makefile/download_dependencies.sh +++ b/tensorflow/contrib/makefile/download_dependencies.sh @@ -19,7 +19,12 @@ set -e DOWNLOADS_DIR=tensorflow/contrib/makefile/downloads BZL_FILE_PATH=tensorflow/workspace.bzl -EIGEN_URL="$(grep -o 'http.*bitbucket.org/eigen/eigen/.*tar\.gz' "${BZL_FILE_PATH}")" +EIGEN_VERSION="$(sed -ne 's/^[ \t]*eigen_version = "\(.*\)".*$/\1/p' "${BZL_FILE_PATH}")" +if [ "${EIGEN_VERSION}" == '' ]; then + echo "Cannot extract eigen_version from ${BZL_FILE_PATH}" >&2 + exit 1 +fi +EIGEN_URL="$(grep -o 'http.*bitbucket.org/eigen/eigen/get/' "${BZL_FILE_PATH}")${EIGEN_VERSION}.tar.gz" GEMMLOWP_URL="$(grep -o 'http.*github.com/google/gemmlowp/.*tar\.gz' "${BZL_FILE_PATH}")" GOOGLETEST_URL="https://github.com/google/googletest/archive/release-1.8.0.tar.gz" PROTOBUF_URL="$(grep -o 'http.*github.com/google/protobuf/.*tar\.gz' "${BZL_FILE_PATH}")" |