mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-27 17:43:27 +00:00
13 lines
234 B
Bash
13 lines
234 B
Bash
|
#!/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}
|
||
|
echo $sanitized >> $outfile
|
||
|
done
|