From e1837a2d541d7fda251e88fa9259aabd71aadf08 Mon Sep 17 00:00:00 2001 From: wangyueliang Date: Mon, 29 Jan 2024 16:05:12 +0800 Subject: [PATCH] Remove tools/ [upstream] 484c1484152dd38cf3985f6a52078074074c6e31 --- tools/Makefile | 33 --------------------------------- tools/README.md | 9 --------- 2 files changed, 42 deletions(-) delete mode 100644 tools/Makefile delete mode 100644 tools/README.md diff --git a/tools/Makefile b/tools/Makefile deleted file mode 100644 index da5b4261..00000000 --- a/tools/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -PREFIX ?= /usr -DESTDIR ?= -toolsLong=$(shell cd .. && $ git log -n 1 --date=short --pretty=format:%H -- tools) -toolsShort=$(shell cd .. && $ git log -n 1 --date=short --pretty=format:%h -- tools) -toolsVersion=$(shell cd .. && $ git log -n 1 --date=short --pretty=format:%cs~%h -- tools) -minioFlags := -X github.com/minio/minio/cmd.Version=$(toolsVersion) -X github.com/minio/minio/cmd.ReleaseTag=COSA-$(toolsVersion) -X github.com/minio/minio/cmd.CommitID=cosa-$(toolsLong) -X github.com/minio/minio/cmd.ShortCommitID=cosa-$(toolsShort) - -export GO11MODULE=on -export GOOS=linux -export CGO_ENABLED=0 -build: - mkdir -p bin - test -e bin/golangci-lint || \ - go build -mod=vendor -o bin/golangci-lint github.com/golangci/golangci-lint/cmd/golangci-lint - test -e bin/gosec || \ - go build -mod=vendor -o bin/gosec github.com/securego/gosec/cmd/gosec - test -f bin/schematyper || \ - go build -mod=vendor -o bin/schematyper github.com/idubinskiy/schematyper - test -e bin/gomarkdoc || \ - go build -mod=vendor -o bin/gomarkdoc github.com/princjef/gomarkdoc/cmd/gomarkdoc - test -e bin/minio || \ - go build -mod=vendor -tags kqueue -trimpath --ldflags "$(minioFlags)" -o bin/minio github.com/minio/minio - -clean: - rm -rfv bin - -install: bin/minio bin/golangci-lint bin/gosec bin/schematyper bin/gomarkdoc - install -v -D -t $(DESTDIR)$(PREFIX)/bin bin/{minio,golangci-lint,gosec} - -go-deps: - go mod tidy - go mod download - go mod vendor diff --git a/tools/README.md b/tools/README.md deleted file mode 100644 index 9b6adf0b..00000000 --- a/tools/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Tools - -This directory contains Golang Tools that are needed for building/using -`gangplank`, generating schemas, or generating Markdown documentation. - -- golangci-lint -- gomarkdoc -- minio -- schematyper \ No newline at end of file -- Gitee