message: Gemmlowp is now a zip file, and correctly handle zip archives.
diff: @@ -20,7 +20,7 @@ DOWNLOADS_DIR=tensorflow/contrib/makefile/downloads
  BZL_FILE_PATH=tensorflow/workspace.bzl
  EIGEN_URL="$(grep -o 'http.*bitbucket.org/eigen/eigen/get/.*tar\.gz' "${BZL_FILE_PATH}" | grep -v bazel-mirror | head -n1)"
  -GEMMLOWP_URL="$(grep -o 'http://mirror.bazel.build/github.com/google/gemmlowp/.*tar\.gz' "${BZL_FILE_PATH}" | head -n1)"
  +GEMMLOWP_URL="$(grep -o 'http://mirror.bazel.build/github.com/google/gemmlowp/.*zip' "${BZL_FILE_PATH}" | head -n1)"
  GOOGLETEST_URL="https://github.com/google/googletest/archive/release-1.8.0.tar.gz"
  NSYNC_URL="$(grep -o 'http://mirror.bazel.build/github.com/google/nsync/.*tar\.gz' "${BZL_FILE_PATH}" | head -n1)"
  PROTOBUF_URL="$(grep -o 'http://mirror.bazel.build/github.com/google/protobuf/.*tar\.gz' "${BZL_FILE_PATH}" | head -n1)"
  @@ -49,7 +49,18 @@ download_and_extract() {
  local dir="${2:?${usage}}"
  echo "downloading ${url}" >&2
  mkdir -p "${dir}"
  + if [[ "${url}" == *gz ]]; then
  curl -Ls "${url}" | tar -C "${dir}" --strip-components=1 -xz
  + elif [[ "${url}" == *zip ]]; then
  + tempdir=$(mktemp -d)
  + tempdir2=$(mktemp -d)
  + wget ${url} -d ${tempdir}
  + unzip ${tempdir}/* -d ${tempdir2}
  + # unzip has no strip components, so unzip to a temp dir, and move the files
  + # we want from the tempdir to destination.
  + cp -R ${tempdir2}/*/* ${dir}/
  + rm -rf ${tempdir2} ${tempdir}
  + fi
  # Delete any potential BUILD files, which would interfere with Bazel builds.
  find "${dir}" -type f -name '*BUILD' -delete
  