aboutsummaryrefslogtreecommitdiffstats
path: root/templates/rust/scripts
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-03 16:54:37 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-03 16:54:37 +0200
commitcf1f1262bdf2155495df682f121654b2aba04288 (patch)
tree3a1b7ab26665d56ab8828b680238334dc4ed86aa /templates/rust/scripts
parentchore(version): v0.6.2 (diff)
downloadflake-templates-cf1f1262bdf2155495df682f121654b2aba04288.zip
chore(templates/rust): Quickly Update [THIS WILL BE REBASED]
Diffstat (limited to 'templates/rust/scripts')
-rwxr-xr-xtemplates/rust/scripts/renew_copyright_header.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/rust/scripts/renew_copyright_header.sh b/templates/rust/scripts/renew_copyright_header.sh
index 4f424c3..737435b 100755
--- a/templates/rust/scripts/renew_copyright_header.sh
+++ b/templates/rust/scripts/renew_copyright_header.sh
@@ -15,7 +15,7 @@ remove() {
# formatters do weird things to the file
case "$extension" in
# normal '#' comments (these are $TEMPLATE_LINE_LENGTH lines long)
- "Makefile" | "toml" | "envrc" | "yml" | "gitignore" | "awk")
+ "Makefile" | "toml" | "envrc" | "yml" | "gitignore" | "awk" | "pest")
sed --in-place "1,${TEMPLATE_LINE_LENGTH}d" "$file"
;;
# LaTeX files (or TeX files in general) have a different license, use the
@@ -24,7 +24,7 @@ remove() {
sed --in-place "1,${LATEX_TEMPLATE_LINE_LENGTH}d" "$file"
;;
# normal '/* ... */' like comments (these are $TEMPLATE_LINE_LENGTH + 2 lines long)
- "c" | "h" | "md" | "rs")
+ "c" | "h" | "md" | "rs" | "html")
length="$((TEMPLATE_LINE_LENGTH + 2))"
sed --in-place "1,${length}d;" "$file"
;;