From 91c18422ec5a200b53da4c33226fa9117db64fe4 Mon Sep 17 00:00:00 2001 From: dinglei Date: Mon, 17 Feb 2020 18:52:13 +0800 Subject: [PATCH] chore(license): add missed license header in some files (#244) --- dep/build.sh | 14 ++++++++++++++ rpm/build.sh | 14 ++++++++++++++ src/producer/DefaultMQProducer.cpp | 17 +++++++++++++++++ src/producer/TransactionMQProducer.cpp | 17 +++++++++++++++++ 4 files changed, 62 insertions(+) diff --git a/dep/build.sh b/dep/build.sh index 88dbbfdae..d33e7c4c3 100644 --- a/dep/build.sh +++ b/dep/build.sh @@ -1,3 +1,17 @@ +# 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. BASEDIR=$(dirname "$0") if [[ ! -d ${BASEDIR}/rocketmq_amd64/usr/local/include/rocketmq ]]; then mkdir -p ${BASEDIR}/rocketmq_amd64/usr/local/include/rocketmq diff --git a/rpm/build.sh b/rpm/build.sh index 326bf9d63..364b3dc7e 100644 --- a/rpm/build.sh +++ b/rpm/build.sh @@ -1,3 +1,17 @@ +# 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. BASEDIR=$(dirname "$0") if [[ ! -d ${BASEDIR}/rocketmq_x64/CENTOS/ ]]; then echo "Can not find SPEC FILE" diff --git a/src/producer/DefaultMQProducer.cpp b/src/producer/DefaultMQProducer.cpp index 9a6d41496..e5eb6ba30 100644 --- a/src/producer/DefaultMQProducer.cpp +++ b/src/producer/DefaultMQProducer.cpp @@ -1,3 +1,20 @@ +/* + * 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. + */ + #include "DefaultMQProducer.h" #include "DefaultMQProducerImpl.h" diff --git a/src/producer/TransactionMQProducer.cpp b/src/producer/TransactionMQProducer.cpp index b10e27990..5d69afbc5 100644 --- a/src/producer/TransactionMQProducer.cpp +++ b/src/producer/TransactionMQProducer.cpp @@ -1,3 +1,20 @@ +/* + * 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. + */ + #include "TransactionMQProducer.h" #include "TransactionMQProducerImpl.h"