blob: 5b51ccf06c4bafa5ede35513ab26cc158864f33d [file] [log] [blame]
Dave MacLachlan48006262016-02-03 23:31:39 +00001#!/bin/bash
2
3# Copyright 2016 The Bazel Authors. All rights reserved.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http:#www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17set -eu
18
19# This allows the script to be both a binary and a library script. If our binary has defined
20# RUNFILES then we use it, otherwise we look for our own runfiles.
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +000021RUNFILES=${RUNFILES:-$0.runfiles/io_bazel}
Dave MacLachlan48006262016-02-03 23:31:39 +000022
23source "${RUNFILES}/examples/shell/lib.sh"
24
25showfile