Browse Source

update sync script

pull/125/head
yedf2 4 years ago
parent
commit
95eafb667b
  1. 5
      helper/sync-dtmcli.sh

5
helper/sync-dtmcli.sh

@ -14,7 +14,7 @@ fi
cd ../dtmcli
cp -rf ../dtm/dtmcli/* ./
rm -f *_test.go
sed -i '' -e 's/yedf\/dtm\//yedf\//g' *.go
sed -i '' -e 's/dtm-labs\/dtm\//dtm-labs\//g' *.go */**.go
go mod tidy
go build || exit 1
git add .
@ -38,8 +38,7 @@ cd ../dtmgrpc
rm -rf *.go dtmgimp
cp -r ../dtm/dtmgrpc/* ./
go get github.com/dtm-labs/dtmcli@$ver
sed -i '' -e 's/yedf\/dtm\//yedf\//g' *.go
sed -i '' -e 's/yedf\/dtm\//yedf\//g' dtmgimp/*.go dtmgimp/*.proto
sed -i '' -e 's/dtm-labs\/dtm\//dtm-labs\//g' *.go */**.go
rm -rf *_test.go
go mod tidy
go build || exit 1

Loading…
Cancel
Save