mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			441 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			441 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
echo "starting ..."
 | 
						|
 | 
						|
#rm -f ../pkg/rpc/pb/*.pb.go
 | 
						|
 | 
						|
protoc --go_out=plugins=grpc:../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/*.proto
 | 
						|
RESULT=$?
 | 
						|
if [ "${RESULT}" != "0" ]; then
 | 
						|
	exit
 | 
						|
fi
 | 
						|
 | 
						|
RESULT=`protoc --go_out=plugins=grpc:../pkg/rpc --proto_path=../pkg/rpc/protos ../pkg/rpc/protos/models/*.proto`
 | 
						|
RESULT=$?
 | 
						|
if [ "${RESULT}" != "0" ]; then
 | 
						|
	exit
 | 
						|
fi
 | 
						|
 | 
						|
 | 
						|
# generate rpc.json
 | 
						|
./proto-json.sh --quiet
 | 
						|
 | 
						|
echo "ok" |