From a261baedf4845bd51a87a97880dd5182719342b8 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 20 Mar 2021 20:40:40 +0000 Subject: [PATCH] fup: add SPDX headers --- web/fup/cmd/extractstatic.go | 4 ++++ web/fup/cmd/root.go | 4 ++++ web/fup/cmd/serve.go | 4 ++++ web/fup/default.nix | 2 +- web/fup/fup.go | 4 ++++ web/fup/fuphttp/fuphttp.go | 4 ++++ web/fup/fuphttp/fuphttp_test.go | 4 ++++ web/fup/fupstatic/css/base.css | 5 +++++ web/fup/fupstatic/fupstatic.go | 4 ++++ web/fup/fupstatic/hashfs.go | 4 ++++ web/fup/fupstatic/hashfs_test.go | 4 ++++ web/fup/fupstatic/js/base.js | 4 +++- web/fup/fupstatic/tmpl/404.html | 6 ++++++ web/fup/fupstatic/tmpl/base.html | 6 ++++++ web/fup/fupstatic/tmpl/index.html | 6 ++++++ web/fup/go.mod | 4 ++++ web/fup/go.sum.license | 2 ++ 17 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 web/fup/go.sum.license diff --git a/web/fup/cmd/extractstatic.go b/web/fup/cmd/extractstatic.go index f21b9021db..ade1d2eaf6 100644 --- a/web/fup/cmd/extractstatic.go +++ b/web/fup/cmd/extractstatic.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/web/fup/cmd/root.go b/web/fup/cmd/root.go index 979dcb5197..397c1681f6 100644 --- a/web/fup/cmd/root.go +++ b/web/fup/cmd/root.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/web/fup/cmd/serve.go b/web/fup/cmd/serve.go index 810e7ffa3b..8c06ee6d4f 100644 --- a/web/fup/cmd/serve.go +++ b/web/fup/cmd/serve.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/web/fup/default.nix b/web/fup/default.nix index 61afe467b2..efc851bdb1 100644 --- a/web/fup/default.nix +++ b/web/fup/default.nix @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# SPDX-FileCopyrightText: 2021 Luke Granger-Brown # # SPDX-License-Identifier: Apache-2.0 diff --git a/web/fup/fup.go b/web/fup/fup.go index 7927d4eb33..0f35c17ef6 100644 --- a/web/fup/fup.go +++ b/web/fup/fup.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package main import "hg.lukegb.com/lukegb/depot/web/fup/cmd" diff --git a/web/fup/fuphttp/fuphttp.go b/web/fup/fuphttp/fuphttp.go index fea1b11924..4fb516325f 100644 --- a/web/fup/fuphttp/fuphttp.go +++ b/web/fup/fuphttp/fuphttp.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package fuphttp import ( diff --git a/web/fup/fuphttp/fuphttp_test.go b/web/fup/fuphttp/fuphttp_test.go index 410c406903..7839c6deae 100644 --- a/web/fup/fuphttp/fuphttp_test.go +++ b/web/fup/fuphttp/fuphttp_test.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package fuphttp_test import ( diff --git a/web/fup/fupstatic/css/base.css b/web/fup/fupstatic/css/base.css index e69de29bb2..ef1dcb268b 100644 --- a/web/fup/fupstatic/css/base.css +++ b/web/fup/fupstatic/css/base.css @@ -0,0 +1,5 @@ +/* + * SPDX-FileCopyrightText: 2021 Luke Granger-Brown + * + * SPDX-License-Identifier: Apache-2.0 + */ \ No newline at end of file diff --git a/web/fup/fupstatic/fupstatic.go b/web/fup/fupstatic/fupstatic.go index 0a96865308..1ad4bceb80 100644 --- a/web/fup/fupstatic/fupstatic.go +++ b/web/fup/fupstatic/fupstatic.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package fupstatic import ( diff --git a/web/fup/fupstatic/hashfs.go b/web/fup/fupstatic/hashfs.go index 42a250766d..ede0c3a49b 100644 --- a/web/fup/fupstatic/hashfs.go +++ b/web/fup/fupstatic/hashfs.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package fupstatic import ( diff --git a/web/fup/fupstatic/hashfs_test.go b/web/fup/fupstatic/hashfs_test.go index 5474d6f404..c60923f112 100644 --- a/web/fup/fupstatic/hashfs_test.go +++ b/web/fup/fupstatic/hashfs_test.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + package fupstatic import ( diff --git a/web/fup/fupstatic/js/base.js b/web/fup/fupstatic/js/base.js index 8b13789179..b154b0c1c1 100644 --- a/web/fup/fupstatic/js/base.js +++ b/web/fup/fupstatic/js/base.js @@ -1 +1,3 @@ - +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/web/fup/fupstatic/tmpl/404.html b/web/fup/fupstatic/tmpl/404.html index a88707b38b..869d7d7efd 100644 --- a/web/fup/fupstatic/tmpl/404.html +++ b/web/fup/fupstatic/tmpl/404.html @@ -1,3 +1,9 @@ +{{/* +SPDX-FileCopyrightText: 2021 Luke Granger-Brown + +SPDX-License-Identifier: Apache-2.0 +*/}} + {{define "main"}}

404 Not Found

Sorry. :(

diff --git a/web/fup/fupstatic/tmpl/base.html b/web/fup/fupstatic/tmpl/base.html index a752357a78..39ab6e4c18 100644 --- a/web/fup/fupstatic/tmpl/base.html +++ b/web/fup/fupstatic/tmpl/base.html @@ -1,3 +1,9 @@ + + {{block "main" .}}{{end}} diff --git a/web/fup/fupstatic/tmpl/index.html b/web/fup/fupstatic/tmpl/index.html index 0066166d58..bc9c323568 100644 --- a/web/fup/fupstatic/tmpl/index.html +++ b/web/fup/fupstatic/tmpl/index.html @@ -1,3 +1,9 @@ +{{/* +SPDX-FileCopyrightText: 2021 Luke Granger-Brown + +SPDX-License-Identifier: Apache-2.0 +*/}} + {{define "main"}}

Hello

{{end}} diff --git a/web/fup/go.mod b/web/fup/go.mod index 9b68e0d3a5..97873ac1a2 100644 --- a/web/fup/go.mod +++ b/web/fup/go.mod @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Luke Granger-Brown +// +// SPDX-License-Identifier: Apache-2.0 + module hg.lukegb.com/lukegb/depot/web/fup go 1.16 diff --git a/web/fup/go.sum.license b/web/fup/go.sum.license new file mode 100644 index 0000000000..8416f42cbc --- /dev/null +++ b/web/fup/go.sum.license @@ -0,0 +1,2 @@ +SPDX-FileCopyrightText: 2021 Luke Granger-Brown +SPDX-License-Identifier: Apache-2.0