about summary refs log tree commit diff
path: root/add-license.sh
diff options
context:
space:
mode:
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"