script fixes

This commit is contained in:
William Banfield
2022-03-03 12:52:59 -05:00
parent e78d3b7cc5
commit 39eb3b0680

View File

@@ -5,7 +5,7 @@ cp ./proto/tendermint/abci/types.proto.intermediate ./proto/tendermint/abci/type
cp ./proto/tendermint/types/types.proto.intermediate ./proto/tendermint/types/types.proto
MODNAME="$(go list -m)"
find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" -not -path "./proto/intermediate" \
find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" \
-exec sh ./scripts/protopackage.sh {} "$MODNAME" ';'
sh ./scripts/protopackage.sh ./proto/tendermint/abci/types.proto $MODNAME "abci/types"
@@ -18,7 +18,7 @@ echo "proto files have been compiled"
echo "checking out copied files"
find proto/tendermint/ -name '*.proto' \
find proto/tendermint/ -name '*.proto' -not -path "*.intermediate"\
| xargs -I {} git checkout {}
find proto/tendermint/ -name '*.pb.go' \