From fa150b95d3d9d9b3ea51a03e9243d2b4b2a6c761 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Sun, 17 Apr 2022 22:43:29 +0200
Subject: Add license
---
lib/logging.bash | 4 ++++
lib/main.bash | 4 ++++
lib/subcommands/add.bash | 4 ++++
lib/subcommands/bootstrap.bash | 4 ++++
lib/subcommands/del.bash | 4 ++++
lib/subcommands/ssh.bash | 4 ++++
lib/subcommands/sync.bash | 4 ++++
lib/subcommands/sysinfo.bash | 4 ++++
lib/util.bash | 4 ++++
9 files changed, 36 insertions(+)
(limited to 'lib')
diff --git a/lib/logging.bash b/lib/logging.bash
index 05b95c6..c120abf 100644
--- a/lib/logging.bash
+++ b/lib/logging.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
# The base function to output logging information. This should *not* be used
# directly, but the helper functions can be used safely.
log() {
diff --git a/lib/main.bash b/lib/main.bash
index 851da1d..227512a 100644
--- a/lib/main.bash
+++ b/lib/main.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
# shellcheck source=lib/util.bash
source "$(dirname "${BASH_SOURCE[0]}")/util.bash"
diff --git a/lib/subcommands/add.bash b/lib/subcommands/add.bash
index b48ef10..590c8ec 100644
--- a/lib/subcommands/add.bash
+++ b/lib/subcommands/add.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
export BASHTARD_PLAYBOOK="$1" ; shift
diff --git a/lib/subcommands/bootstrap.bash b/lib/subcommands/bootstrap.bash
index 8750134..343547d 100644
--- a/lib/subcommands/bootstrap.bash
+++ b/lib/subcommands/bootstrap.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
remote="$1" ; shift
diff --git a/lib/subcommands/del.bash b/lib/subcommands/del.bash
index 3896fec..9f01c3c 100644
--- a/lib/subcommands/del.bash
+++ b/lib/subcommands/del.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
export BASHTARD_PLAYBOOK="$1" ; shift
diff --git a/lib/subcommands/ssh.bash b/lib/subcommands/ssh.bash
index 19ead9a..0eb4be8 100644
--- a/lib/subcommands/ssh.bash
+++ b/lib/subcommands/ssh.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
local ssh="$(config app.ssh)"
diff --git a/lib/subcommands/sync.bash b/lib/subcommands/sync.bash
index 8fce0b6..7722e2d 100644
--- a/lib/subcommands/sync.bash
+++ b/lib/subcommands/sync.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
export BASHTARD_PLAYBOOK="$1" ; shift
diff --git a/lib/subcommands/sysinfo.bash b/lib/subcommands/sysinfo.bash
index 7b83e32..8aa237e 100644
--- a/lib/subcommands/sysinfo.bash
+++ b/lib/subcommands/sysinfo.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand() {
printf "%-15s %s\n" "etcdir" "$BASHTARD_ETCDIR"
printf "%-15s %s\n" "libdir" "$BASHTARD_LIBDIR"
diff --git a/lib/util.bash b/lib/util.bash
index 98bdc95..ea9ac3b 100644
--- a/lib/util.bash
+++ b/lib/util.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
# Change the working directory. In usage, this is the same as using cd,
# however, it will make additional checks to ensure everything is going fine.
chgdir() {
--
cgit v1.1