2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-27 17:43:27 +00:00
bazel-lib/lib/tests/run_binary_expansions/expansions.sh
Greg Magolan fb0677ad57
chore: cleanup before bazel-contrib handoff (#918)
* chore: clenaup before bazel-contrib handoff

* chore: apply lint fixes

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
2024-09-02 09:32:38 -07:00

13 lines
275 B
Bash
Executable file

#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
mkdir -p $(dirname "$1")
outfile=$1
rm -f "$outfile"
for each in $@; do
sanitized=${each/darwin/PLATFORM}
sanitized=${sanitized/k8/PLATFORM}
sanitized=${sanitized/_arm64/}
echo "$sanitized" >>"$outfile"
done