2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-30 01:41:21 +00:00
bazel-lib/tools/release/create_release.sh

22 lines
496 B
Bash
Executable file

#!/bin/bash
set -o errexit -o nounset -o pipefail
echo '#!/bin/bash'
echo 'set -o errexit -o nounset -o pipefail'
# shellcheck disable=SC2016
echo 'dst=$1'
# shellcheck disable=SC2016
echo 'mkdir -p "${dst}"'
for artifact in "$@"; do
echo "echo \"Copying ${artifact} to \${dst}\""
echo "if [ -d \"${artifact}\" ]; then"
echo " for f in \"${artifact}\"/*; do"
echo " cp \"\${f}\" \"\${dst}\""
echo " done"
echo "else"
echo " cp \"${artifact}\" \"\${dst}\""
echo "fi"
done