blob: 95a850073a0f920b01e5e04d15e13097821629fc [file] [log] [blame]
#!/usr/bin/env bash
# For integration tests, we want to be able to glob() up the sources inside a nested package
# See explanation in .bazelrc
set -eux
DIR="$(dirname $0)/../.."
# The sed -i.bak pattern is compatible between macos and linux
sed -i.bak "/^[^#].*--deleted_packages/s#=.*#=$(\
find examples/*/* \( -name BUILD -or -name BUILD.bazel \) | xargs -n 1 dirname | paste -sd, -\
)#" $DIR/.bazelrc && rm .bazelrc.bak