This is an automated email from the ASF dual-hosted git repository. kezhenxu94 pushed a commit to branch release/script in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
commit 831502f8051eb09012e2e9b8aca1eb1f7b6229d0 Author: kezhenxu94 <[email protected]> AuthorDate: Thu Dec 24 21:39:00 2020 +0800 Add script to build release tars and move licenses to belonging subproject --- LICENSE | 9 ------ license-eye/CHANGES.md | 6 ++++ LICENSE => license-eye/LICENSE | 0 license-eye/Makefile | 35 +++++++++++++++++++--- {dist => license-eye/dist}/LICENSE | 0 {dist => license-eye/dist}/NOTICE | 0 .../dist}/licenses/LICENSE-doublestar.txt | 0 .../dist}/licenses/LICENSE-go-github.txt | 0 .../dist}/licenses/LICENSE-golang-oauth2.txt | 0 .../dist}/licenses/LICENSE-linguist.txt | 0 .../dist}/licenses/LICENSE-logrus.txt | 0 .../dist}/licenses/LICENSE-yaml.v3.txt | 0 .../licenses}/LICENSE-linguist | 0 13 files changed, 37 insertions(+), 13 deletions(-) diff --git a/LICENSE b/LICENSE index e4b71ce..67c185f 100644 --- a/LICENSE +++ b/LICENSE @@ -208,12 +208,3 @@ The Apache SkyWalking Eyes project contains subcomponents with separate copyrigh notices and license terms. Your use of the source code for the these subcomponents is subject to the terms and conditions of the following licenses. - -======================================================================== -MIT licenses -======================================================================== - -The following components are provided under the MIT license. See project link for details. -The text of each license is also included at licenses/LICENSE-[project].txt. - - languages.yaml from GitHub: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml MIT diff --git a/license-eye/CHANGES.md b/license-eye/CHANGES.md new file mode 100644 index 0000000..7e84869 --- /dev/null +++ b/license-eye/CHANGES.md @@ -0,0 +1,6 @@ +## 0.1.0 + +- License Header + + Add `check` and `fix` command. + + `check` results can be reported to pull request as comments. + + `fix` suggestions can be filed on pull request as edit suggestions. diff --git a/LICENSE b/license-eye/LICENSE similarity index 100% copy from LICENSE copy to license-eye/LICENSE diff --git a/license-eye/Makefile b/license-eye/Makefile index 96d060f..e11f136 100644 --- a/license-eye/Makefile +++ b/license-eye/Makefile @@ -19,16 +19,12 @@ PROJECT = license-eye VERSION ?= latest OUT_DIR = bin -CURDIR := $(shell pwd) -FILES := $$(find .$$($(PACKAGE_DIRECTORIES)) -name "*.go") -FAIL_ON_STDOUT := awk '{ print } END { if (NR > 0) { exit 1 } }' ARCH := $(shell uname) OSNAME := $(if $(findstring Darwin,$(ARCH)),darwin,linux) GO := GO111MODULE=on go GO_PATH = $(shell $(GO) env GOPATH) GO_BUILD = $(GO) build -GO_GET = $(GO) get GO_TEST = $(GO) test GO_LINT = $(GO_PATH)/bin/golangci-lint GO_BUILD_LDFLAGS = -X github.com/apache/skywalking-eyes/license-eye/commands.version=$(VERSION) @@ -39,6 +35,9 @@ PLATFORMS := windows linux darwin os = $(word 1, $@) ARCH = amd64 +RELEASE_BIN = skywalking-license-eye-$(VERSION)-bin +RELEASE_SRC = skywalking-license-eye-$(VERSION)-src + all: clean lint license test build .PHONY: lint @@ -81,3 +80,31 @@ clean: -rm -rf bin -rm -rf assets/*.gen.go -rm -rf coverage.txt + -rm -rf "$(RELEASE_BIN)"* + -rm -rf "$(RELEASE_SRC)"* + +.PHONY: verify +verify: clean license lint test + +release-src: clean + -mkdir $(RELEASE_SRC) + -cp ../NOTICE $(RELEASE_SRC) + -rsync -av . $(RELEASE_SRC) --exclude $(RELEASE_SRC) --exclude .DS_Store + -tar -zcvf $(RELEASE_SRC).tgz $(RELEASE_SRC) + -rm -rf "$(RELEASE_SRC)" + +release-bin: build + -mkdir $(RELEASE_BIN) + -cp -R bin $(RELEASE_BIN) + -cp -R dist/* $(RELEASE_BIN) + -cp -R CHANGES.md $(RELEASE_BIN) + -cp -R README.adoc $(RELEASE_BIN) + -cp -R ../NOTICE $(RELEASE_BIN) + -tar -zcvf $(RELEASE_BIN).tgz $(RELEASE_BIN) + -rm -rf "$(RELEASE_BIN)" + +release: verify release-src release-bin + gpg --batch --yes --armor --detach-sig $(RELEASE_SRC).tgz + shasum -a 512 $(RELEASE_SRC).tgz > $(RELEASE_SRC).tgz.sha512 + gpg --batch --yes --armor --detach-sig $(RELEASE_BIN).tgz + shasum -a 512 $(RELEASE_BIN).tgz > $(RELEASE_BIN).tgz.sha512 diff --git a/dist/LICENSE b/license-eye/dist/LICENSE similarity index 100% rename from dist/LICENSE rename to license-eye/dist/LICENSE diff --git a/dist/NOTICE b/license-eye/dist/NOTICE similarity index 100% rename from dist/NOTICE rename to license-eye/dist/NOTICE diff --git a/dist/licenses/LICENSE-doublestar.txt b/license-eye/dist/licenses/LICENSE-doublestar.txt similarity index 100% rename from dist/licenses/LICENSE-doublestar.txt rename to license-eye/dist/licenses/LICENSE-doublestar.txt diff --git a/dist/licenses/LICENSE-go-github.txt b/license-eye/dist/licenses/LICENSE-go-github.txt similarity index 100% rename from dist/licenses/LICENSE-go-github.txt rename to license-eye/dist/licenses/LICENSE-go-github.txt diff --git a/dist/licenses/LICENSE-golang-oauth2.txt b/license-eye/dist/licenses/LICENSE-golang-oauth2.txt similarity index 100% rename from dist/licenses/LICENSE-golang-oauth2.txt rename to license-eye/dist/licenses/LICENSE-golang-oauth2.txt diff --git a/dist/licenses/LICENSE-linguist.txt b/license-eye/dist/licenses/LICENSE-linguist.txt similarity index 100% rename from dist/licenses/LICENSE-linguist.txt rename to license-eye/dist/licenses/LICENSE-linguist.txt diff --git a/dist/licenses/LICENSE-logrus.txt b/license-eye/dist/licenses/LICENSE-logrus.txt similarity index 100% rename from dist/licenses/LICENSE-logrus.txt rename to license-eye/dist/licenses/LICENSE-logrus.txt diff --git a/dist/licenses/LICENSE-yaml.v3.txt b/license-eye/dist/licenses/LICENSE-yaml.v3.txt similarity index 100% rename from dist/licenses/LICENSE-yaml.v3.txt rename to license-eye/dist/licenses/LICENSE-yaml.v3.txt diff --git a/licenses/LICENSE-linguist b/license-eye/licenses/LICENSE-linguist similarity index 100% rename from licenses/LICENSE-linguist rename to license-eye/licenses/LICENSE-linguist
