Просмотр исходного кода

Makefile: Make "make test" work on OS X.

OS X's sed wants an -e on the expression when using -i.
Damien Neil 9 лет назад
Родитель
Сommit
c432f0b89e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      protoc-gen-go/testdata/Makefile

+ 3 - 3
protoc-gen-go/testdata/Makefile

@@ -45,9 +45,9 @@ my_test/test.pb.go: my_test/test.proto
 
 
 golden:
 golden:
 	make -B my_test/test.pb.go
 	make -B my_test/test.pb.go
-	sed -i '/return.*fileDescriptor/d' my_test/test.pb.go
-	sed -i '/^var fileDescriptor/,/^}/d' my_test/test.pb.go
-	sed -i '/proto.RegisterFile.*fileDescriptor/d' my_test/test.pb.go
+	sed -i -e '/return.*fileDescriptor/d' my_test/test.pb.go
+	sed -i -e '/^var fileDescriptor/,/^}/d' my_test/test.pb.go
+	sed -i -e '/proto.RegisterFile.*fileDescriptor/d' my_test/test.pb.go
 	gofmt -w my_test/test.pb.go
 	gofmt -w my_test/test.pb.go
 	diff -w my_test/test.pb.go my_test/test.pb.go.golden
 	diff -w my_test/test.pb.go my_test/test.pb.go.golden