forked from trinitrix/core
fix(scripts/renew_copyright_header): Update to the new copyright text
This commit is contained in:
parent
d7e4159a26
commit
a779fa250d
|
@ -158,6 +158,8 @@
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
cocogitto
|
cocogitto
|
||||||
|
|
||||||
|
yq
|
||||||
|
|
||||||
rust_default
|
rust_default
|
||||||
cargo-edit
|
cargo-edit
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#! /usr/bin/env sh
|
||||||
# Copyright (C) 2024 - 2024:
|
# Copyright (C) 2024 - 2024:
|
||||||
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
# The Trinitrix Project <bpeetz@b-peetz.de, antifallobst@systemausfall.org>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
@ -24,11 +25,9 @@
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
# OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
#! /usr/bin/env sh
|
|
||||||
|
|
||||||
# NOTE: This is the line length of the .licensure.yml header template **plus** the extra
|
# NOTE: This is the line length of the .licensure.yml header template **plus** the extra
|
||||||
# line after the template comment.
|
# line after the template comment.
|
||||||
TEMPLATE_LINE_LENGTH=20
|
TEMPLATE_LINE_LENGTH=26
|
||||||
LATEX_TEMPLATE_LINE_LENGTH=9
|
LATEX_TEMPLATE_LINE_LENGTH=9
|
||||||
|
|
||||||
PROJECT_ROOT="$(git rev-parse --show-toplevel)"
|
PROJECT_ROOT="$(git rev-parse --show-toplevel)"
|
||||||
|
@ -41,7 +40,7 @@ remove() {
|
||||||
# formatters do weird things to the file
|
# formatters do weird things to the file
|
||||||
case "$extension" in
|
case "$extension" in
|
||||||
# normal '#' comments (these are $TEMPLATE_LINE_LENGTH lines long)
|
# normal '#' comments (these are $TEMPLATE_LINE_LENGTH lines long)
|
||||||
"Makefile" | "toml" | "envrc" | "yml" | "gitignore" | "awk" | "lua")
|
"Makefile" | "makefile" | "toml" | "envrc" | "yml" | "gitignore" | "awk" | "lua")
|
||||||
sed --in-place "1,${TEMPLATE_LINE_LENGTH}d" "$file"
|
sed --in-place "1,${TEMPLATE_LINE_LENGTH}d" "$file"
|
||||||
;;
|
;;
|
||||||
# LaTeX files (or TeX files in general) have a different license, use the
|
# LaTeX files (or TeX files in general) have a different license, use the
|
||||||
|
@ -50,7 +49,7 @@ remove() {
|
||||||
sed --in-place "1,${LATEX_TEMPLATE_LINE_LENGTH}d" "$file"
|
sed --in-place "1,${LATEX_TEMPLATE_LINE_LENGTH}d" "$file"
|
||||||
;;
|
;;
|
||||||
# normal '/* ... */' like comments (these are $TEMPLATE_LINE_LENGTH + 2 lines long)
|
# normal '/* ... */' like comments (these are $TEMPLATE_LINE_LENGTH + 2 lines long)
|
||||||
"c" | "h" | "md" | "rs" | "html" | "svg" | "drawio")
|
"c" | "h" | "md" | "rs" | "html" | "svg" | "drawio" | "tri")
|
||||||
length="$((TEMPLATE_LINE_LENGTH + 2))"
|
length="$((TEMPLATE_LINE_LENGTH + 2))"
|
||||||
sed --in-place "1,${length}d;" "$file"
|
sed --in-place "1,${length}d;" "$file"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue