This is an automated email from the ASF dual-hosted git repository. jamesge pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new 79044bc add license header for scripts new d4fa4e8 Merge pull request #915 from tanzhongyibidu/master 79044bc is described below commit 79044bc40c95037751c2ad0d543b9513ca4c3c0b Author: tanzhongyibidu <tanzhon...@baidu.com> AuthorDate: Mon Sep 2 15:16:35 2019 +0800 add license header for scripts --- build_in_travis_ci.sh | 19 +++++++++++++++++++ config_brpc.sh | 19 +++++++++++++++++++ example/multi_threaded_echo_fns_c++/random_kill.sh | 19 ++++++++++++++++++- test/run_tests.sh | 20 +++++++++++++++++++- tools/add_syntax_equal_proto2_to_all.sh | 20 +++++++++++++++++++- 5 files changed, 94 insertions(+), 3 deletions(-) diff --git a/build_in_travis_ci.sh b/build_in_travis_ci.sh index 975f921..a73c66a 100644 --- a/build_in_travis_ci.sh +++ b/build_in_travis_ci.sh @@ -1,3 +1,22 @@ +#!/usr/bin/env sh + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + if [ -z "$PURPOSE" ]; then echo "PURPOSE must be set" exit 1 diff --git a/config_brpc.sh b/config_brpc.sh index c236c05..f53d2aa 100755 --- a/config_brpc.sh +++ b/config_brpc.sh @@ -1,3 +1,22 @@ +#!/usr/bin/env sh + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + SYSTEM=$(uname -s) if [ "$SYSTEM" = "Darwin" ]; then if [ -z "$BASH" ] || [ "$BASH" = "/bin/sh" ] ; then diff --git a/example/multi_threaded_echo_fns_c++/random_kill.sh b/example/multi_threaded_echo_fns_c++/random_kill.sh index c6ccf7a..96b8abe 100644 --- a/example/multi_threaded_echo_fns_c++/random_kill.sh +++ b/example/multi_threaded_echo_fns_c++/random_kill.sh @@ -1,4 +1,21 @@ -#!/bin/sh +#!/usr/bin/env sh + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# make -sj8 || exit -1 diff --git a/test/run_tests.sh b/test/run_tests.sh index 8d84856..d9bffb8 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -1,4 +1,22 @@ -#/bin/bash -f +#!/usr/bin/env bash + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + test_num=0 failed_test="" rc=0 diff --git a/tools/add_syntax_equal_proto2_to_all.sh b/tools/add_syntax_equal_proto2_to_all.sh index 87ed508..ae681e5 100644 --- a/tools/add_syntax_equal_proto2_to_all.sh +++ b/tools/add_syntax_equal_proto2_to_all.sh @@ -1,4 +1,22 @@ -#!/bin/bash +#!/usr/bin/env bash + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + # Add 'syntax="proto2";' to the beginning of all proto files under # PWD(recursively) if the proto file does not have it. for file in $(find . -name "*.proto"); do --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org