From 62608badf7230afa5e4ebe72da5cb2522bfb33a4 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 2 Apr 2024 14:46:44 +0200 Subject: chore(version): v0.6.1 --- templates/rust/.licensure.yml | 4 ++-- templates/rust/docs/%INIT_APPLICATION_NAME.1.md | 2 +- templates/rust/init | 4 ++-- templates/rust/treefmt.nix | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'templates/rust') diff --git a/templates/rust/.licensure.yml b/templates/rust/.licensure.yml index 60ef45c..639d750 100644 --- a/templates/rust/.licensure.yml +++ b/templates/rust/.licensure.yml @@ -22,10 +22,10 @@ licenses: email: "%INIT_AUTHOR_EMAIL" template: | - %INIT_APPLIACATION_NAME_STYLIZED %INIT_YEAR - [year] (C) by [name of author] + %INIT_APPLICATION_NAME_STYLIZED %INIT_YEAR - [year] (C) by [name of author] SPDX-License-Identifier: CC-BY-SA-4.0 - %INIT_APPLIACATION_NAME_STYLIZED is licensed under a + %INIT_APPLICATION_NAME_STYLIZED is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. You should have received a copy of the license along with this diff --git a/templates/rust/docs/%INIT_APPLICATION_NAME.1.md b/templates/rust/docs/%INIT_APPLICATION_NAME.1.md index 0a7ec9d..e044647 100644 --- a/templates/rust/docs/%INIT_APPLICATION_NAME.1.md +++ b/templates/rust/docs/%INIT_APPLICATION_NAME.1.md @@ -38,7 +38,7 @@ Report bugs to . # COPYRIGHT -Copyright (C) %INIT_YEAR %INIT_AUTOHR_NAME +Copyright (C) %INIT_YEAR %INIT_AUTHOR_NAME This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/templates/rust/init b/templates/rust/init index df0b4c5..e7414d6 100755 --- a/templates/rust/init +++ b/templates/rust/init @@ -78,11 +78,11 @@ while read -r var; do var_value="${var#*=\"}" var_value="${var_value%\"}" - fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|" + fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|g" # Replace the variable in file paths fd "%INIT_$var_name" . --hidden | while read -r file_path; do - new_file_path="$(echo "$file_path" | sed "s|%INIT_$var_name|$var_value|")"; + new_file_path="$(echo "$file_path" | sed "s|%INIT_$var_name|$var_value|g")"; mv "$file_path" "$new_file_path" done done < "$replacement_file" diff --git a/templates/rust/treefmt.nix b/templates/rust/treefmt.nix index 540a6ca..1cbab40 100644 --- a/templates/rust/treefmt.nix +++ b/templates/rust/treefmt.nix @@ -59,7 +59,6 @@ treefmt-nix.lib.evalModule pkgs ( global.excludes = [ "CHANGELOG.md" "NEWS.md" - "%INIT_APPLICATION_NAME.1.md" ]; formatter = { clang-format = { -- cgit 1.4.1