From 19389d97e9419909bd52f4d1a5eb9359e7cf1648 Mon Sep 17 00:00:00 2001 From: _cry64 Date: Thu, 8 Jan 2026 14:03:59 +1000 Subject: [PATCH] add missing Apache2 statement to ceru --- ceru/ceru | 14 ++++++++++++++ ceru/libceru.sh | 16 +++++++++++++++- ceru/subcmds/new/default.sh | 15 +++++++++++++++ ceru/subcmds/new/key | 15 +++++++++++++++ 4 files changed, 59 insertions(+), 1 deletion(-) diff --git a/ceru/ceru b/ceru/ceru index bc4a4b1..f407960 100755 --- a/ceru/ceru +++ b/ceru/ceru @@ -1,4 +1,18 @@ #!/usr/bin/env bash +# Copyright 2025 Emile Clark-Boman +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail # ======== CONFIGURATION ======== diff --git a/ceru/libceru.sh b/ceru/libceru.sh index f3ff6d5..d08551c 100755 --- a/ceru/libceru.sh +++ b/ceru/libceru.sh @@ -1,9 +1,23 @@ #!/usr/bin/env bash +# Copyright 2025 Emile Clark-Boman +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # libceru relies on the script that sources # it to set the following environment variables: # CMD_NAME USAGE -set -u + +set -u # ======== INTERNAL STATE ======== SUBCMDS="$PWD/subcmds" # XXX: TODO: don't hardcode as relative diff --git a/ceru/subcmds/new/default.sh b/ceru/subcmds/new/default.sh index 8cfce8f..ed0d15a 100755 --- a/ceru/subcmds/new/default.sh +++ b/ceru/subcmds/new/default.sh @@ -1,5 +1,20 @@ #!/usr/bin/env bash +# Copyright 2025 Emile Clark-Boman +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail + USAGE="${BOLD}${UNDERLINE}${RED}Usage${RESET} ${BOLD}${GREEN}$THIS new [option...] subcommand${RESET} diff --git a/ceru/subcmds/new/key b/ceru/subcmds/new/key index e37570b..599762e 100755 --- a/ceru/subcmds/new/key +++ b/ceru/subcmds/new/key @@ -1,5 +1,20 @@ #!/usr/bin/env bash +# Copyright 2025 Emile Clark-Boman +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail + USAGE="${BOLD}${UNDERLINE}${RED}Usage${RESET} ${BOLD}${GREEN}$THIS new key [option...]${RESET}