summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-07-18 11:36:05 +0200
committerYorhel <git@yorhel.nl>2021-07-18 11:50:50 +0200
commitc8636b89820c36457fe0453ca5f1ea2f85e920f0 (patch)
tree4970fdcd299c6d944273c7b74bb16f9a8c322a08
parentee92f403eff2f83964e0a4ba83277c9677566c76 (diff)
Add REUSE-compliant copyright headers
-rw-r--r--.gitignore3
-rw-r--r--COPYING20
-rw-r--r--ChangeLog3
-rw-r--r--LICENSES/MIT.txt9
-rw-r--r--Makefile9
-rw-r--r--README.md5
-rw-r--r--build.zig3
-rw-r--r--ncdu.pod3
-rw-r--r--src/browser.zig3
-rw-r--r--src/delete.zig3
-rw-r--r--src/main.zig3
-rw-r--r--src/model.zig3
-rw-r--r--src/ncurses_refs.c4
-rw-r--r--src/scan.zig3
-rw-r--r--src/ui.zig3
-rw-r--r--src/util.zig3
16 files changed, 57 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore
index 2d06fe7..fcf65ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+# SPDX-License-Identifier: MIT
+
*.swp
*~
ncdu.1
diff --git a/COPYING b/COPYING
deleted file mode 100644
index 2ff764f..0000000
--- a/COPYING
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2007-2021 Yoran Heling
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ChangeLog b/ChangeLog
index dcb02cb..dfac751 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+# SPDX-License-Identifier: MIT
+
1.15.1 - 2020-06-10
- (Linux) Fix build on older Linux systems (Christian Göttsche)
- (MacOS) Revert "Exclude firmlinks by default" behavior (until we have a better solution)
diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt
new file mode 100644
index 0000000..2071b23
--- /dev/null
+++ b/LICENSES/MIT.txt
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) <year> <copyright holders>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Makefile b/Makefile
index fcea0f8..6966046 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+# SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+# SPDX-License-Identifier: MIT
+
# Optional semi-standard Makefile with some handy tools.
# Ncdu itself can be built with just the zig build system.
@@ -7,12 +10,12 @@ MANDIR ?= ${PREFIX}/share/man/man1
NCDU_VERSION=$(shell grep 'program_version = "' src/main.zig | sed -e 's/^.*"\(.\+\)".*$$/\1/')
-debug:
- zig build
-
release:
zig build -Drelease-fast
+debug:
+ zig build
+
clean:
rm -rf zig-cache zig-out
diff --git a/README.md b/README.md
index ed6cd8d..d6aab76 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,8 @@
+<!--
+SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+SPDX-License-Identifier: MIT
+-->
+
# ncdu-zig
## Description
diff --git a/build.zig b/build.zig
index 90058aa..e16eb2d 100644
--- a/build.zig
+++ b/build.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
const std = @import("std");
pub fn build(b: *std.build.Builder) void {
diff --git a/ncdu.pod b/ncdu.pod
index 47c1a33..caa9812 100644
--- a/ncdu.pod
+++ b/ncdu.pod
@@ -1,3 +1,6 @@
+SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+SPDX-License-Identifier: MIT
+
=head1 NAME
B<ncdu> - NCurses Disk Usage
diff --git a/src/browser.zig b/src/browser.zig
index 0e31586..1e228df 100644
--- a/src/browser.zig
+++ b/src/browser.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
const std = @import("std");
const main = @import("main.zig");
const model = @import("model.zig");
diff --git a/src/delete.zig b/src/delete.zig
index 36ebe4a..b690d80 100644
--- a/src/delete.zig
+++ b/src/delete.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
const std = @import("std");
const main = @import("main.zig");
const model = @import("model.zig");
diff --git a/src/main.zig b/src/main.zig
index 70c6466..040d14e 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
pub const program_version = "2.0-dev";
const std = @import("std");
diff --git a/src/model.zig b/src/model.zig
index 0881182..991d87d 100644
--- a/src/model.zig
+++ b/src/model.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
const std = @import("std");
const main = @import("main.zig");
const ui = @import("ui.zig");
diff --git a/src/ncurses_refs.c b/src/ncurses_refs.c
index bcaeb3d..b458efb 100644
--- a/src/ncurses_refs.c
+++ b/src/ncurses_refs.c
@@ -1,3 +1,7 @@
+/* SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+ * SPDX-License-Identifier: MIT
+ */
+
#include <curses.h>
/* Zig @cImport() has problems with the ACS_* macros. Two, in fact:
diff --git a/src/scan.zig b/src/scan.zig
index def9c1a..f56c9e6 100644
--- a/src/scan.zig
+++ b/src/scan.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
const std = @import("std");
const main = @import("main.zig");
const model = @import("model.zig");
diff --git a/src/ui.zig b/src/ui.zig
index cdcaa3b..d9a7d74 100644
--- a/src/ui.zig
+++ b/src/ui.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
// Ncurses wrappers and TUI helper functions.
const std = @import("std");
diff --git a/src/util.zig b/src/util.zig
index 277a006..4c5c8a9 100644
--- a/src/util.zig
+++ b/src/util.zig
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2021 Yoran Heling <projects@yorhel.nl>
+// SPDX-License-Identifier: MIT
+
const std = @import("std");
pub fn saturateAdd(a: anytype, b: @TypeOf(a)) @TypeOf(a) {