2022-09-13 14:34:14 +02:00

28 lines
509 B
Bash
Executable File

#!/bin/bash
if [ -n "$DEBUG" ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)/../../
COMPONENTS_DIR="$ROOT_DIR"/components
# include protoc bash functions
# shellcheck disable=SC1090,SC1091
source "$ROOT_DIR"/scripts/protoc-generator.sh
lint
install_dependencies
go_protoc "$COMPONENTS_DIR" "usage/v1"
mkdir -p go/v1
mv go/usage/v1/*.pb.go go/v1
rm -rf go/usage
typescript_ts_protoc "$COMPONENTS_DIR" "usage/v1"
update_license