message: Supporting paths for build_server script.
diff: #
  # Builds the test server for distributed (GRPC) TensorFlow
  #
  -# Usage: build_server.sh <docker_image_name> <whl_url> [--test]
  +# Usage: build_server.sh <docker_image_name> <whl_file_location> [--test]
  #
  # Arguments:
  # docker_image_name: Name of the docker image to build.
  # E.g.: tensorflow/tf_grpc_test_server:0.11.0rc1
  #
  -# whl_url: URL from which the TensorFlow whl file will be downloaded.
  +# whl_file_location: URL from which the TensorFlow whl file will be downloaded.
  # E.g.: https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=cpu-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl
  +# E.g.: /path/to/folder/tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl
  #
  # The optional flag --test lets the script to use the Dockerfile for the
  # testing GRPC server. Without the flag, the script will build the non-test
  @@ -41,11 +42,11 @@ die() {
  # Check arguments
  if [[ $# -lt 2 ]]; then
  - die "Usage: $0 <docker_image_name> <whl_url> [--test]"
  + die "Usage: $0 <docker_image_name> <whl_location> [--test]"
  fi
  DOCKER_IMG_NAME=$1
  -WHL_URL=$2
  +WHL_FILE_LOCATION=$2
  shift 2
  # Current script directory
  @@ -53,7 +54,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  BUILD_DIR=$(mktemp -d)
  echo ""
  -echo "Using whl file URL: ${WHL_URL}"
  +echo "Using whl file URL: ${WHL_FILE_LOCATION}"
  echo "Building in temporary directory: ${BUILD_DIR}"
  cp -r ${DIR}/* "${BUILD_DIR}"/ || \
  @@ -65,9 +66,15 @@ if [[ $1 == "--test" ]]; then
  fi
  echo "Using Docker file: ${DOCKER_FILE}"
  +if [[ $WHL_FILE_LOCATION =~ 'http://' || $WHL_FILE_LOCATION =~ 'https://' ]]; then
  + # Download whl file into the build context directory.
  + wget -P "${BUILD_DIR}" "${WHL_FILE_LOCATION}" || \
  + die "Failed to download tensorflow whl file from URL: ${WHL_FILE_LOCATION}"
  +else
  + cp "${WHL_FILE_LOCATION}" "${BUILD_DIR}"
  +fi
  +
  # Download whl file into the build context directory.
  -wget -P "${BUILD_DIR}" ${WHL_URL} || \
  - die "Failed to download tensorflow whl file from URL: ${WHL_URL}"
  if [[ ! -f "${DOCKER_FILE}" ]]; then
  die "ERROR: Unable to find dockerfile: ${DOCKER_FILE}"
  