about summary refs log tree commit diff
path: root/add-license.sh
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2022-12-02 10:01:58 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2022-12-02 10:01:58 +0700
commit00fa316382900709b209fd1bc96caa50b5c95c30 (patch)
tree00e51175508014e845a63e4f106900993eba13ba /add-license.sh
downloadvictor-00fa316382900709b209fd1bc96caa50b5c95c30.tar.gz
Initial commit
Layout license info
Diffstat (limited to 'add-license.sh')
-rwxr-xr-xadd-license.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/add-license.sh b/add-license.sh
new file mode 100755
index 0000000..570db47
--- /dev/null
+++ b/add-license.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy <huyngo@disroot.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+#
+reuse addheader --copyright "$(git config user.name) <$(git config user.email)>" --year $(date +%Y) --license "$1" "$2"