Merge pull request #72 from tianxiaoliang/master
[SCB-1477]add release script
diff --git a/NOTICE b/NOTICE
index f010307..a7ce770 100755
--- a/NOTICE
+++ b/NOTICE
@@ -4,8 +4,8 @@
This product includes software developed at
Huawei.
-Apache ServiceComb Mersher
-Copyright 2017-2019 The Apache Software Foundation
+Apache ServiceComb Mesher
+Copyright 2019-2019 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
\ No newline at end of file
diff --git a/README.md b/README.md
index 8cf9187..43e4449 100644
--- a/README.md
+++ b/README.md
@@ -59,5 +59,8 @@
- docker image name: servicecomb/mesher-sidecar:latest
# Documentations
+# Documentations
+You can see more documentations in [here](https://mesher.readthedocs.io/en/latest/),
+this online doc is for latest version of mesher, if you want to see your version's doc,
+follow [here](docs/README.md) to generate it in local
-https://mesher.readthedocs.io/en/latest/
diff --git a/build/build_proxy.sh b/build/build_proxy.sh
index b7f1647..d757c54 100755
--- a/build/build_proxy.sh
+++ b/build/build_proxy.sh
@@ -41,6 +41,8 @@
go build -a github.com/apache/servicecomb-mesher/cmd/mesher
cp -r $PROJECT_DIR/licenses $release_dir
+cp -r $PROJECT_DIR/licenses/LICENSE $release_dir
+cp -r $PROJECT_DIR/licenses/NOTICE $release_dir
cp -r $PROJECT_DIR/conf $release_dir
cp $PROJECT_DIR/start.sh $release_dir
cp $PROJECT_DIR/mesher $release_dir
@@ -63,12 +65,13 @@
chmod +x start.sh mesher
-x86_pkg_name="mesher-$VERSION-linux-amd64.tar.gz"
-arm_pkg_name="mesher-$VERSION-linux-arm64.tar.gz"
+component="apache-servicecomb-mesher"
+x86_pkg_name="$component-$VERSION-linux-amd64.tar.gz"
+arm_pkg_name="$component-$VERSION-linux-arm64.tar.gz"
#x86 release
-tar zcvf $x86_pkg_name licenses conf mesher VERSION
-tar zcvf mesher.tar.gz licenses conf mesher VERSION start.sh # for docker image
+tar zcvf $x86_pkg_name licenses conf mesher VERSION LICENSE NOTICE
+tar zcvf mesher.tar.gz licenses conf mesher VERSION LICENSE NOTICE start.sh # for docker image
echo "building docker..."
@@ -78,4 +81,4 @@
# arm release
GOARCH=arm64 go build -a github.com/apache/servicecomb-mesher/cmd/mesher
-tar zcvf $arm_pkg_name licenses conf mesher VERSION
\ No newline at end of file
+tar zcvf $arm_pkg_name licenses conf mesher VERSION LICENSE NOTICE
\ No newline at end of file
diff --git a/build/release.sh b/build/release.sh
new file mode 100755
index 0000000..1ce58c6
--- /dev/null
+++ b/build/release.sh
@@ -0,0 +1,39 @@
+#!/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.
+
+export BUILD_DIR=$(cd "$(dirname "$0")"; pwd)
+export PROJECT_DIR=$(dirname ${BUILD_DIR})
+
+component="apache-servicecomb-mesher"
+x86_pkg_name="$component-$VERSION-linux-amd64.tar.gz"
+arm_pkg_name="$component-$VERSION-linux-arm64.tar.gz"
+cd $PROJECT_DIR/release
+#asc
+gpg --armor --output "${x86_pkg_name}".asc --detach-sig "${x86_pkg_name}"
+gpg --armor --output "${arm_pkg_name}".asc --detach-sig "${arm_pkg_name}"
+#512
+sha512sum "${x86_pkg_name}" > "${x86_pkg_name}".sha512
+sha512sum "${arm_pkg_name}" > "${arm_pkg_name}".sha512
+#src
+wget "https://github.com/apache/servicecomb-mesher/archive/v${VERSION}.tar.gz"
+
+src_name="${component}-${VERSION}-src.tar.gz"
+mv "v${VERSION}.tar.gz" "${src_name}"
+
+gpg --armor --output "$src_name.asc" --detach-sig "${src_name}"
+
+sha512sum "${src_name}" > "${src_name}".sha512
\ No newline at end of file
diff --git a/licenses/LICENSE b/licenses/LICENSE
index 9c5e7d6..1c64605 100644
--- a/licenses/LICENSE
+++ b/licenses/LICENSE
@@ -217,7 +217,7 @@
github.com/lyft/protoc-gen-validate (v0.0.11)
github.com/envoyproxy/go-control-plane (v0.6.0)
github.com/go-mesh/openlogging (v1.0.0)
-github.com/gogo/googleapis (v1.1.0)
+github.com/gogo/googleapis (v1.1.0)
github.com/golang/glog (v0.0.0-20160126235308-23def4e6c14b)
github.com/google/gofuzz (v0.0.0-20170612174753-24818f796faf)
github.com/matttproud/golang_protobuf_extensions (v1.0.1)
@@ -256,7 +256,7 @@
================================================================
For onsi/gomega (v1.4.2)
================================================================
-This product bundles onsi/gomega which is licensed under
+This product bundles onsi/gomega which is licensed under
the MIT License.
For details, see https://github.com/onsi/gomega
You can find a copy of the License at licenses/LICENSE-onsi-gomega
@@ -264,7 +264,7 @@
================================================================
For onsi/ginkgo (v1.6.0)
================================================================
-This product bundles onsi/ginkgo which is licensed under
+This product bundles onsi/ginkgo which is licensed under
the MIT License.
For details, see https://github.com/onsi/ginkgo
You can find a copy of the License at licenses/LICENSE-onsi-ginkgo
@@ -272,7 +272,7 @@
================================================================
For honnef.co/go/tools (v0.0.0-20180728063816-88497007e858)
================================================================
-This product bundles honnef.co/go/tools which is licensed under
+This product bundles honnef.co/go/tools which is licensed under
the MIT License.
For details, see https://github.com/dominikh/go-tools
You can find a copy of the License at licenses/LICENSE-honnef.co-go-tools
@@ -280,7 +280,7 @@
================================================================
For Shopify/toxiproxy (v2.1.3+incompatible)
================================================================
-This product bundles perks which is licensed under
+This product bundles perks which is licensed under
the MIT License.
For details, see https://github.com/Shopify/toxiproxy
You can find a copy of the License at licenses/LICENSE-Shopify-toxiproxy
@@ -288,7 +288,7 @@
================================================================
For go-stack/stack (v1.8.0)
================================================================
-This product bundles go-stack/stack which is licensed under
+This product bundles go-stack/stack which is licensed under
the MIT License.
For details, see https://github.com/go-stack/stack
You can find a copy of the License at licenses/LICENSE-go-stack-stack
@@ -296,7 +296,7 @@
================================================================
For go-kit/kit (v0.8.0)
================================================================
-This product bundles go-kit/kit which is licensed under
+This product bundles go-kit/kit which is licensed under
the MIT License.
For details, see https://github.com/go-kit/kit
You can find a copy of the License at licenses/LICENSE-go-kit-kit
@@ -304,7 +304,7 @@
================================================================
For beorn7/perks (3a771d992973f24aa725d07868b467d1ddfceafb)
================================================================
-This product bundles perks which is licensed under
+This product bundles perks which is licensed under
the MIT License.
For details, see https://github.com/beorn7/perks
You can find a copy of the License at licenses/LICENSE-beorn7-perks
@@ -312,7 +312,7 @@
================================================================
For Shopify/sarama (v1.18.0)
================================================================
-This product bundles perks which is licensed under
+This product bundles perks which is licensed under
the MIT License.
For details, see https://github.com/Shopify/sarama
You can find a copy of the License at licenses/LICENSE-Shopify-sarama
@@ -320,7 +320,7 @@
================================================================
For alecthomas/units (v0.0.0-20151022065526-2efee857e7cf)
================================================================
-This product bundles the alecthomas/units library which is licensed under
+This product bundles the alecthomas/units library which is licensed under
the MIT License.
For details, see https://github.com/alecthomas/units
You can find a copy of the License at licenses/LICENSE-alecthomas-units
@@ -328,7 +328,7 @@
================================================================
For github.com/konsorten/go-windows-terminal-sequences (v1.0.1)
================================================================
-This product bundles the konsorten/go-windows-terminal-sequences library which is licensed under
+This product bundles the konsorten/go-windows-terminal-sequences library which is licensed under
the MIT License.
For details, see https://github.com/konsorten/go-windows-terminal-sequences
You can find a copy of the License at licenses/LICENSE-konsorten-go-windows-terminal-sequences
@@ -336,7 +336,7 @@
================================================================
For eapache/go-resiliency (v1.1.0)
================================================================
-This product bundles the eapache/go-resiliency library which is licensed under
+This product bundles the eapache/go-resiliency library which is licensed under
the MIT License.
For details, see https://github.com/eapache/go-resiliency
You can find a copy of the License at licenses/LICENSE-eapache-go-resiliency
@@ -344,7 +344,7 @@
================================================================
For kr/logfmt (v0.0.0-20140226030751-b84e30acd515)
================================================================
-This product bundles the kr/logfmt library which is licensed under
+This product bundles the kr/logfmt library which is licensed under
the MIT License.
For details, see https://github.com/kr/logfmt
You can find a copy of the License at licenses/LICENSE-kr-logfmt
@@ -352,7 +352,7 @@
================================================================
For gopkg.in/alecthomas/kingpin.v2 (v2.2.6)
================================================================
-This product bundles gopkg.in/alecthomas/kingpin.v2 which is licensed under
+This product bundles gopkg.in/alecthomas/kingpin.v2 which is licensed under
the MIT License.
For details, see https://github.com/alecthomas/kingpin
You can find a copy of the License at licenses/LICENSE-gopkg.in-alecthomas-kingpin.v2
@@ -360,7 +360,7 @@
================================================================
For kisielk/gotool (v1.0.0)
================================================================
-This product bundles the kisielk/gotool library which is licensed under
+This product bundles the kisielk/gotool library which is licensed under
the MIT License.
For details, see https://github.com/kisielk/gotool
You can find a copy of the License at licenses/LICENSE-kisielk-gotool
@@ -368,7 +368,7 @@
================================================================
For eapache/go-xerial-snappy (776d5712da21bc4762676d614db1d8a64f4238b0)
================================================================
-This product bundles the eapache/go-xerial-snappy library which is licensed under
+This product bundles the eapache/go-xerial-snappy library which is licensed under
the MIT License.
For details, see https://github.com/eapache/go-xerial-snappy
You can find a copy of the License at licenses/LICENSE-eapache-go-xerial-snappy
@@ -376,7 +376,7 @@
================================================================
For emicklei/go-restful-swagger12 (v0.0.0-20170926063155-7524189396c6)
================================================================
-This product bundles the emicklei/go-restful-swagger12 library which is licensed under
+This product bundles the emicklei/go-restful-swagger12 library which is licensed under
the MIT License.
For details, see https://github.com/emicklei/go-restful-swagger12
You can find a copy of the License at licenses/LICENSE-emicklei-go-restful-swagger12
@@ -384,7 +384,7 @@
================================================================
For eapache/queue (v1.1.0)
================================================================
-This product bundles the eapache/queue library which is licensed under
+This product bundles the eapache/queue library which is licensed under
the MIT License.
For details, see https://github.com/eapache/queue
You can find a copy of the License at licenses/LICENSE-eapache-queue
@@ -392,7 +392,7 @@
================================================================
For emicklei/go-restful (v2.8.0+incompatible)
================================================================
-This product bundles the emicklei/go-restful library which is licensed under
+This product bundles the emicklei/go-restful library which is licensed under
the MIT License.
For details, see https://github.com/emicklei/go-restful
You can find a copy of the License at licenses/LICENSE-emicklei-go-restful
@@ -400,7 +400,7 @@
================================================================
For ghodss/yaml (v1.0.0)
================================================================
-This product bundles ghodss/yaml which is licensed under
+This product bundles ghodss/yaml which is licensed under
the MIT License.
For details, see https://github.com/ghodss/yaml
You can find a copy of the License at licenses/LICENSE-ghodss-yaml
@@ -408,7 +408,7 @@
================================================================
For sirupsen/logrus (v1.2.0)
================================================================
-This product bundles sirupsen/logrus which is licensed under
+This product bundles sirupsen/logrus which is licensed under
the MIT License.
For details, see https://github.com/sirupsen/logrus
You can find a copy of the License at licenses/LICENSE-sirupsen-logrus
@@ -416,7 +416,7 @@
================================================================
For go-chassis/go-restful-swagger20 (v1.0.1)
================================================================
-This product bundles go-chassis/go-restful-swagger20 which is licensed under
+This product bundles go-chassis/go-restful-swagger20 which is licensed under
the MIT License.
For details, see https://github.com/go-chassis/go-restful-swagger20
You can find a copy of the License at licenses/LICENSE-go-restful-swagger20
@@ -424,7 +424,7 @@
================================================================
For smartystreets/assertions (v0.0.0-20190116191733-b6c0e53d7304)
================================================================
-This product bundles smartystreets/assertions which is licensed under
+This product bundles smartystreets/assertions which is licensed under
the MIT License.
For details, see https://github.com/smartystreets/assertions
You can find a copy of the License at licenses/LICENSE-smartystreets-assertions
@@ -432,7 +432,7 @@
================================================================
For smartystreets/goconvey (v0.0.0-20190330032615-68dc04aab96a)
================================================================
-This product bundles smartystreets/goconvey which is licensed under
+This product bundles smartystreets/goconvey which is licensed under
the MIT License.
For details, see https://github.com/smartystreets/goconvey
You can find a copy of the License at licenses/LICENSE-smartystreets-goconvey
@@ -440,7 +440,7 @@
================================================================
For jtolds/gls (v4.20.0+incompatible)
================================================================
-This product bundles jtolds/gls which is licensed under
+This product bundles jtolds/gls which is licensed under
the MIT License.
For details, see https://github.com/jtolds/gls
You can find a copy of the License at licenses/LICENSE-jtolds-gls
@@ -448,7 +448,7 @@
================================================================
For go-logfmt/logfmt (v0.4.0)
================================================================
-This product bundles the go-logfmt/logfmt library which is licensed under
+This product bundles the go-logfmt/logfmt library which is licensed under
the MIT License.
For details, see https://github.com/go-logfmt/logfmt
You can find a copy of the License at licenses/LICENSE-go-logfmt
@@ -456,7 +456,7 @@
================================================================
For json-iterator/go (v1.1.5)
================================================================
-This product bundles json-iterator/go which is licensed under
+This product bundles json-iterator/go which is licensed under
the MIT License.
For details, see https://github.com/json-iterator/go
You can find a copy of the License at licenses/LICENSE-json-iterator-go
@@ -464,7 +464,7 @@
================================================================
For spf13/cast (v1.2.0)
================================================================
-This product bundles spf13/cast which is licensed under
+This product bundles spf13/cast which is licensed under
the MIT License.
For details, see https://github.com/spf13/cast
You can find a copy of the License at licenses/LICENSE-spf13-cast
@@ -472,7 +472,7 @@
================================================================
For client9/misspell (v0.3.4)
================================================================
-This product bundles client9/misspell which is licensed under
+This product bundles client9/misspell which is licensed under
the MIT License.
For details, see https://github.com/client9/misspell
You can find a copy of the License at licenses/LICENSE-client9-misspell
@@ -480,7 +480,7 @@
================================================================
For openzipkin-contrib/zipkin-go-opentracing (v0.3.5)
================================================================
-This product bundles openzipkin-contrib/zipkin-go-opentracing which is licensed
+This product bundles openzipkin-contrib/zipkin-go-opentracing which is licensed
under the MIT License.
For details, see https://github.com/openzipkin-contrib/zipkin-go-opentracing
You can find a copy of the License at licenses/LICENSE-openzipkin-contrib-zipkin-go-opentracing
@@ -512,7 +512,7 @@
================================================================
For urfave/cli (v1.20.1-0.20181029213200-b67dcf995b6a)
================================================================
-This product bundles urfave/cli which is licensed under
+This product bundles urfave/cli which is licensed under
the MIT License.
For details, see https://github.com/urfave/cli
You can find a copy of the License at licenses/LICENSE-urfave-cli
@@ -577,15 +577,15 @@
================================================================
For pkg/errors (v0.8.1)
================================================================
-This product bundles pkg/errors which is licensed under
+This product bundles pkg/errors which is licensed under
the 2-Clause BSD License.
-For details, see https://github.com/pkg/errors
+For details, see https://github.com/pkg/errors
You can find a copy of the License at licenses/LICENSE-pkg-errors
================================================================
For gorilla/websocket (v1.4.0)
================================================================
-This product bundles gorilla/websocket which is licensed under
+This product bundles gorilla/websocket which is licensed under
the 2-Clause BSD License.
For details, see https://github.com/gorilla/websocket
You can find a copy of the License at licenses/LICENSE-gorilla-websocket
@@ -593,7 +593,7 @@
================================================================
For fsnotify/fsnotify (v1.4.7)
================================================================
-This product bundles the fsnotify/fsnotify library which is licensed under
+This product bundles the fsnotify/fsnotify library which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/fsnotify/fsnotify
You can find a copy of the License at licenses/LICENSE-fsnotify
@@ -601,7 +601,7 @@
================================================================
For julienschmidt/httprouter (v1.2.0)
================================================================
-This product bundles the julienschmidt/httprouter library which is licensed under
+This product bundles the julienschmidt/httprouter library which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/julienschmidt/httprouter
You can find a copy of the License at licenses/LICENSE-julienschmidt-httprouter
@@ -729,7 +729,7 @@
================================================================
For golang/protobuf (v1.2.0)
================================================================
-This product bundles protobuf which is licensed under
+This product bundles protobuf which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/golang/protobuf
You can find a copy of the License at licenses/LICENSE-golang-protobuf
@@ -737,7 +737,7 @@
================================================================
For golang/snappy (v0.0.1)
================================================================
-This product bundles the snappy library which is licensed under
+This product bundles the snappy library which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/golang/snappy
You can find a copy of the License at licenses/LICENSE-snappy
@@ -745,7 +745,7 @@
================================================================
For alecthomas/template (v0.0.0-20160405071501-a0175ee3bccc)
================================================================
-This product bundles the alecthomas/template library which is licensed under
+This product bundles the alecthomas/template library which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/alecthomas/template
You can find a copy of the License at licenses/LICENSE-alecthomas-template
@@ -753,7 +753,7 @@
================================================================
For pmezard/go-difflib (v1.0.0)
================================================================
-This product bundles the pmezard/go-difflib library which is licensed under
+This product bundles the pmezard/go-difflib library which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/pmezard/go-difflib
You can find a copy of the License at licenses/LICENSE-pmezard-go-difflib
@@ -761,7 +761,7 @@
================================================================
For golang/lint (v0.0.0-20180702182130-06c8688daad7)
================================================================
-This product bundles the golang/lint library which is licensed under
+This product bundles the golang/lint library which is licensed under
the 3-Clause BSD License.
For details, see https://github.com/golang/lint
You can find a copy of the License at licenses/LICENSE-golang-lint
diff --git a/licenses/NOTICE b/licenses/NOTICE
old mode 100644
new mode 100755