From fa3465e68c81e99d2697c2b8d5dc0de9dba57821 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Thu, 6 Oct 2022 19:54:14 +0200 Subject: [PATCH] chore add licenses --- Makefile | 12 ++++++++++++ api.go | 5 ++--- api_test.go | 5 ++--- command.go | 5 ++--- command_test.go | 5 ++--- doc.go | 5 ++--- error.go | 5 ++--- error_test.go | 5 ++--- execute.go | 5 ++--- execute_test.go | 5 ++--- flag.go | 5 ++--- flag_test.go | 5 ++--- integration_test.go | 5 ++--- parse.go | 5 ++--- pathfind.go | 5 ++--- pathfind_test.go | 5 ++--- readme_test.go | 5 ++--- setting.go | 5 ++--- setting_test.go | 5 ++--- shadow.go | 5 ++--- shadow_test.go | 5 ++--- tags.go | 5 ++--- tags_test.go | 5 ++--- 23 files changed, 56 insertions(+), 66 deletions(-) diff --git a/Makefile b/Makefile index bbdd374..423c46b 100644 --- a/Makefile +++ b/Makefile @@ -141,5 +141,17 @@ endif fetch-licenses: go-licenses save $(GO_CURRENT_MODULE) --ignore gitlab.schukai.com --force --save_path $(PROJECT_ROOT)licenses/ ; cd - +# https://spdx.github.io/spdx-spec/v2.3/SPDX-license-list/ +ADDLICENSE_BIN ?= addlicense +ifeq ($(shell command -v $(ADDLICENSE_BIN) 2> /dev/null),) + $(shell go install github.com/google/addlicense@latest) + EXECUTABLES = $(EXECUTABLES:-) $(ADDLICENSE_BIN); +endif + +.PHONY: add-licenses +## Add license headers to all go files +add-licenses: + addlicense -c "schukai GmbH" -s -l "AGPL-3.0-or-later" ./*.go + diff --git a/api.go b/api.go index 5501b77..b219b55 100644 --- a/api.go +++ b/api.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/api_test.go b/api_test.go index eb85229..8474137 100644 --- a/api_test.go +++ b/api_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/command.go b/command.go index e7dc0ec..a523d15 100644 --- a/command.go +++ b/command.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/command_test.go b/command_test.go index 79a34f2..9afdf83 100644 --- a/command_test.go +++ b/command_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/doc.go b/doc.go index cc88bfa..69bd673 100644 --- a/doc.go +++ b/doc.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later // This package provides a simple way to create a CLI application // with subcommands. It is based on the flags package from diff --git a/error.go b/error.go index b8c4678..9aa6a32 100644 --- a/error.go +++ b/error.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/error_test.go b/error_test.go index a283dc1..e05a12a 100644 --- a/error_test.go +++ b/error_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/execute.go b/execute.go index 56ee244..5acb3ae 100644 --- a/execute.go +++ b/execute.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/execute_test.go b/execute_test.go index 6444ede..5d2f670 100644 --- a/execute_test.go +++ b/execute_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/flag.go b/flag.go index 122fbba..79970a3 100644 --- a/flag.go +++ b/flag.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/flag_test.go b/flag_test.go index df67af0..802d06f 100644 --- a/flag_test.go +++ b/flag_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/integration_test.go b/integration_test.go index a8e778f..5107d7a 100644 --- a/integration_test.go +++ b/integration_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/parse.go b/parse.go index c2eb85f..5df9a73 100644 --- a/parse.go +++ b/parse.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/pathfind.go b/pathfind.go index 0ee1038..29c1644 100644 --- a/pathfind.go +++ b/pathfind.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/pathfind_test.go b/pathfind_test.go index 696409e..4471512 100644 --- a/pathfind_test.go +++ b/pathfind_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/readme_test.go b/readme_test.go index 5bbb462..cb3a04e 100644 --- a/readme_test.go +++ b/readme_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/setting.go b/setting.go index 2a4dd72..9b3d3e6 100644 --- a/setting.go +++ b/setting.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/setting_test.go b/setting_test.go index 23a08b8..b202cff 100644 --- a/setting_test.go +++ b/setting_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/shadow.go b/shadow.go index 7570d31..e11e572 100644 --- a/shadow.go +++ b/shadow.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/shadow_test.go b/shadow_test.go index cc8b19e..177ea48 100644 --- a/shadow_test.go +++ b/shadow_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/tags.go b/tags.go index 11ca988..790f634 100644 --- a/tags.go +++ b/tags.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags diff --git a/tags_test.go b/tags_test.go index 943d053..319b8b7 100644 --- a/tags_test.go +++ b/tags_test.go @@ -1,6 +1,5 @@ -// Copyright 2022 schukai GmbH. All rights reserved. -// Use of this source code is governed by a AGPL-3.0 -// license that can be found in the LICENSE file. +// Copyright 2022 schukai GmbH +// SPDX-License-Identifier: AGPL-3.0-or-later package xflags -- GitLab