| Index: third_party/grpc/tools/run_tests/pre_build_csharp.sh
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/environment.py b/third_party/grpc/tools/run_tests/pre_build_csharp.sh
|
| old mode 100644
|
| new mode 100755
|
| similarity index 87%
|
| copy from third_party/WebKit/Tools/Scripts/webkitpy/common/system/environment.py
|
| copy to third_party/grpc/tools/run_tests/pre_build_csharp.sh
|
| index a37bd31d9bfd498549dc9b1bf28a6b8c002bbf12..32466c217714b951206c7ee7e52a8d4e5007fbe1
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/environment.py
|
| +++ b/third_party/grpc/tools/run_tests/pre_build_csharp.sh
|
| @@ -1,4 +1,6 @@
|
| -# Copyright (C) 2011 Google Inc. All rights reserved.
|
| +#!/bin/bash
|
| +# Copyright 2015-2016, Google Inc.
|
| +# All rights reserved.
|
| #
|
| # Redistribution and use in source and binary forms, with or without
|
| # modification, are permitted provided that the following conditions are
|
| @@ -26,11 +28,14 @@
|
| # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| +set -ex
|
|
|
| -class Environment(object):
|
| +# cd to gRPC csharp directory
|
| +cd $(dirname $0)/../../src/csharp
|
|
|
| - def __init__(self, env=None):
|
| - self.env = env or {}
|
| +root=`pwd`
|
|
|
| - def to_dictionary(self):
|
| - return self.env
|
| +if [ -x "$(command -v nuget)" ]
|
| +then
|
| + nuget restore Grpc.sln
|
| +fi
|
|
|