mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
refactor: update go mod library and refactor dev logic Co-authored-by: wencaiwulue <895703375@qq.com>
10 lines
330 B
Bash
10 lines
330 B
Bash
#!/bin/sh
|
|
bazel build //proto/test/...
|
|
files=($(bazel aquery 'kind(proto, //proto/...)' | grep Outputs | grep "[.]pb[.]go" | sed 's/Outputs: \[//' | sed 's/\]//' | tr "," "\n"))
|
|
for src in ${files[@]};
|
|
do
|
|
dst=$(echo $src | sed 's/\(.*\%\/github.com\/google\/cel-spec\/\(.*\)\)/\2/')
|
|
echo "copying $dst"
|
|
$(cp $src $dst)
|
|
done
|