diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-01 12:42:55 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-01 12:42:55 +0100 |
commit | 1519f60dd0d6b2352c692f1edeedc29c533b752e (patch) | |
tree | 9977d179f25d295269bb1f3e149ee94e619febf3 /build/shell | |
parent | fix(templates/latex/presentation/flake.nix): Remove outdated follow (diff) | |
download | flake-templates-1519f60dd0d6b2352c692f1edeedc29c533b752e.tar.gz flake-templates-1519f60dd0d6b2352c692f1edeedc29c533b752e.zip |
chore(build): Re-generate
Diffstat (limited to 'build/shell')
-rw-r--r-- | build/shell/init | 4 | ||||
-rwxr-xr-x | build/shell/scripts/optimize_images.sh | 5 | ||||
-rw-r--r-- | build/shell/shell_line_editor.sh | 6 |
3 files changed, 11 insertions, 4 deletions
diff --git a/build/shell/init b/build/shell/init index d2eb028..7c8138a 100644 --- a/build/shell/init +++ b/build/shell/init @@ -147,6 +147,8 @@ if [ -e ./.reuse/templates/default.jinja2 ]; then fi cat <<EOF | fmt --uniform-spacing --width=85 --split-only >./.reuse/templates/default.jinja2 +$APPLICATION_NAME_STYLIZED$description_str + {% for copyright_line in copyright_lines %} {{ copyright_line }} {% endfor %} @@ -157,7 +159,7 @@ SPDX-FileContributor: {{ contributor_line }} SPDX-License-Identifier: {{ expression }} {% endfor %} -This file is part of $APPLICATION_NAME_STYLIZED$description_str. +This file is part of $APPLICATION_NAME_STYLIZED. You should have received a copy of the License along with this program. If not, see <$LICENSE_URL>. diff --git a/build/shell/scripts/optimize_images.sh b/build/shell/scripts/optimize_images.sh index 0f48e4b..444405d 100755 --- a/build/shell/scripts/optimize_images.sh +++ b/build/shell/scripts/optimize_images.sh @@ -25,7 +25,8 @@ find_files_by_extension() { tmp="$(mktemp)" git ls-files --cached --modified --other --exclude-standard --deduplicate | while IFS= read -r file; do - extension="${file#*.}" + file_basename="$(basename "$file")" + extension="${file_basename#*.}" if [ "$extension" = "$wanted_extension" ]; then echo "$file" else @@ -90,7 +91,7 @@ optimize_files() { TOTAL_SAVED_INNER=0 while IFS= read -r f; do - printf "%-2s/${COUNT} $f ... " "$I" + printf "%s/${COUNT} $f ... " "$I" SIZE="$(size_of "$f")" diff --git a/build/shell/shell_line_editor.sh b/build/shell/shell_line_editor.sh index 8d6833a..a142706 100644 --- a/build/shell/shell_line_editor.sh +++ b/build/shell/shell_line_editor.sh @@ -1,6 +1,8 @@ -#! /usr/bin/env sh +#! /usr/bin/env false # Taken in verbatim from: https://unix.stackexchange.com/a/113450, and somewhat changed +# shellcheck shell=dash + LE_print_debug() { LE_debug="$1" LE_debug_msg="$2" @@ -245,3 +247,5 @@ LE() { echo return "$LE_ret" } + +# vim: ft=sh |