mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
19 lines
466 B
Bash
Executable File
19 lines
466 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if ! [[ "$0" =~ scripts/updatebom.sh ]]; then
|
|
echo "must be run from repository root"
|
|
exit 255
|
|
fi
|
|
|
|
echo "installing 'bill-of-materials.json'"
|
|
go get -v -u github.com/coreos/license-bill-of-materials
|
|
|
|
echo "generating bill-of-materials.json"
|
|
license-bill-of-materials \
|
|
--override-file ./bill-of-materials.override.json \
|
|
go.etcd.io/etcd go.etcd.io/etcd/etcdctl > bill-of-materials.json
|
|
|
|
echo "generated bill-of-materials.json"
|