From 55af87be8bb5b0815461b883ab697c44dabded06 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Thu, 30 Mar 2023 17:33:37 +0200 Subject: [PATCH] lib: update `library-functions.sh` (via `bash lib/tools/gen-library.sh`) --- lib/library-functions.sh | 139 ++++++++++++++++++++++++++++++++------- 1 file changed, 114 insertions(+), 25 deletions(-) diff --git a/lib/library-functions.sh b/lib/library-functions.sh index 8081cb05e4..d13e2fe63f 100644 --- a/lib/library-functions.sh +++ b/lib/library-functions.sh @@ -1,6 +1,69 @@ #!/usr/bin/env bash # This file is/was autogenerated by lib/tools/gen-library.sh; don't modify manually +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-armbian-bsp-cli.sh +# shellcheck source=lib/functions/artifacts/artifact-armbian-bsp-cli.sh +source "${SRC}"/lib/functions/artifacts/artifact-armbian-bsp-cli.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-armbian-bsp-desktop.sh +# shellcheck source=lib/functions/artifacts/artifact-armbian-bsp-desktop.sh +source "${SRC}"/lib/functions/artifacts/artifact-armbian-bsp-desktop.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-armbian-config.sh +# shellcheck source=lib/functions/artifacts/artifact-armbian-config.sh +source "${SRC}"/lib/functions/artifacts/artifact-armbian-config.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-armbian-desktop.sh +# shellcheck source=lib/functions/artifacts/artifact-armbian-desktop.sh +source "${SRC}"/lib/functions/artifacts/artifact-armbian-desktop.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-armbian-plymouth-theme.sh +# shellcheck source=lib/functions/artifacts/artifact-armbian-plymouth-theme.sh +source "${SRC}"/lib/functions/artifacts/artifact-armbian-plymouth-theme.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-armbian-zsh.sh +# shellcheck source=lib/functions/artifacts/artifact-armbian-zsh.sh +source "${SRC}"/lib/functions/artifacts/artifact-armbian-zsh.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/artifacts/artifact-fake-ubuntu-advantage-tools.sh +# shellcheck source=lib/functions/artifacts/artifact-fake-ubuntu-advantage-tools.sh +source "${SRC}"/lib/functions/artifacts/artifact-fake-ubuntu-advantage-tools.sh + # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled @@ -69,18 +132,18 @@ source "${SRC}"/lib/functions/artifacts/artifacts-registry.sh #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled set -o errtrace # trace ERR through - enabled set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled -### lib/functions/bsp/bsp-cli.sh -# shellcheck source=lib/functions/bsp/bsp-cli.sh -source "${SRC}"/lib/functions/bsp/bsp-cli.sh +### lib/functions/bsp/armbian-bsp-cli-deb.sh +# shellcheck source=lib/functions/bsp/armbian-bsp-cli-deb.sh +source "${SRC}"/lib/functions/bsp/armbian-bsp-cli-deb.sh # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled set -o errtrace # trace ERR through - enabled set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled -### lib/functions/bsp/bsp-desktop.sh -# shellcheck source=lib/functions/bsp/bsp-desktop.sh -source "${SRC}"/lib/functions/bsp/bsp-desktop.sh +### lib/functions/bsp/armbian-bsp-desktop-deb.sh +# shellcheck source=lib/functions/bsp/armbian-bsp-desktop-deb.sh +source "${SRC}"/lib/functions/bsp/armbian-bsp-desktop-deb.sh # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" @@ -325,6 +388,42 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true # shellcheck source=lib/functions/compilation/packages/armbian-config-deb.sh source "${SRC}"/lib/functions/compilation/packages/armbian-config-deb.sh +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/compilation/packages/armbian-desktop-deb.sh +# shellcheck source=lib/functions/compilation/packages/armbian-desktop-deb.sh +source "${SRC}"/lib/functions/compilation/packages/armbian-desktop-deb.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/compilation/packages/armbian-plymouth-theme-deb.sh +# shellcheck source=lib/functions/compilation/packages/armbian-plymouth-theme-deb.sh +source "${SRC}"/lib/functions/compilation/packages/armbian-plymouth-theme-deb.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/compilation/packages/armbian-zsh-deb.sh +# shellcheck source=lib/functions/compilation/packages/armbian-zsh-deb.sh +source "${SRC}"/lib/functions/compilation/packages/armbian-zsh-deb.sh + +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/compilation/packages/fake_ubuntu_advantage_tools-deb.sh +# shellcheck source=lib/functions/compilation/packages/fake_ubuntu_advantage_tools-deb.sh +source "${SRC}"/lib/functions/compilation/packages/fake_ubuntu_advantage_tools-deb.sh + # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled @@ -334,15 +433,6 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true # shellcheck source=lib/functions/compilation/packages/firmware-deb.sh source "${SRC}"/lib/functions/compilation/packages/firmware-deb.sh -# no errors tolerated. invoked before each sourced file to make sure. -#set -o pipefail # trace ERR through pipes - will be enabled "soon" -#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled -set -o errtrace # trace ERR through - enabled -set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled -### lib/functions/compilation/packages/plymouth-deb.sh -# shellcheck source=lib/functions/compilation/packages/plymouth-deb.sh -source "${SRC}"/lib/functions/compilation/packages/plymouth-deb.sh - # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled @@ -352,15 +442,6 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true # shellcheck source=lib/functions/compilation/packages/utils-dpkgdeb.sh source "${SRC}"/lib/functions/compilation/packages/utils-dpkgdeb.sh -# no errors tolerated. invoked before each sourced file to make sure. -#set -o pipefail # trace ERR through pipes - will be enabled "soon" -#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled -set -o errtrace # trace ERR through - enabled -set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled -### lib/functions/compilation/packages/zsh-deb.sh -# shellcheck source=lib/functions/compilation/packages/zsh-deb.sh -source "${SRC}"/lib/functions/compilation/packages/zsh-deb.sh - # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled @@ -496,6 +577,15 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true # shellcheck source=lib/functions/configuration/package-lists.sh source "${SRC}"/lib/functions/configuration/package-lists.sh +# no errors tolerated. invoked before each sourced file to make sure. +#set -o pipefail # trace ERR through pipes - will be enabled "soon" +#set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled +set -o errtrace # trace ERR through - enabled +set -o errexit ## set -e : exit the script if any statement returns a non-true return value - enabled +### lib/functions/general/bat-cat.sh +# shellcheck source=lib/functions/general/bat-cat.sh +source "${SRC}"/lib/functions/general/bat-cat.sh + # no errors tolerated. invoked before each sourced file to make sure. #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled @@ -1054,7 +1144,6 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true # shellcheck source=lib/functions/rootfs/trap-rootfs.sh source "${SRC}"/lib/functions/rootfs/trap-rootfs.sh - # no errors tolerated. one last time for the win! #set -o pipefail # trace ERR through pipes - will be enabled "soon" #set -o nounset ## set -u : exit the script if you try to use an uninitialised variable - one day will be enabled