diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-02 14:14:23 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-04-02 14:14:23 +0200 |
commit | 332b7b49ba45a2dde2583436e4f892ccc7e4cc4f (patch) | |
tree | d86d554b5ce4bfa50ad2eeb826e8e47ae243c8f0 | |
parent | feat(common/init): Add support for replacing the variables in file names (diff) | |
download | flake-templates-332b7b49ba45a2dde2583436e4f892ccc7e4cc4f.tar.gz flake-templates-332b7b49ba45a2dde2583436e4f892ccc7e4cc4f.zip |
fix(common/docs): Avoid issue with replacement due to man section part
Diffstat (limited to '')
-rw-r--r-- | common/files/docs/TODO.1.md | 2 | ||||
-rwxr-xr-x | common/files/init | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/files/docs/TODO.1.md b/common/files/docs/TODO.1.md index 15d5072..0a7ec9d 100644 --- a/common/files/docs/TODO.1.md +++ b/common/files/docs/TODO.1.md @@ -1,4 +1,4 @@ -% %INIT_APPLICATION_NAME_CAPITALIZED(1) %INIT_APPLICATION_NAME %INIT_APPLICATION_VERSION +% %INIT_APPLICATION_NAME_CAPITALIZED_MAN_PART %INIT_APPLICATION_NAME %INIT_APPLICATION_VERSION % %INIT_AUTHOR_NAME % %INIT_CURRENT_DATE diff --git a/common/files/init b/common/files/init index 8e3479f..df0b4c5 100755 --- a/common/files/init +++ b/common/files/init @@ -51,7 +51,7 @@ git init # necessary meta data prompt APPLICATION_NAME "The name of the application" "$(basename "$PWD")" prompt APPLICATION_NAME_STYLIZED "The stylized name of the application (for documentation)" "$(echo "$APPLICATION_NAME" | sed 's/\([a-z]\)/\u\1/')" -prompt APPLICATION_NAME_CAPITALIZED "The capitalized name of the application (for documentation)" "$(echo "$APPLICATION_NAME" | sed 's/\([a-z]\)/\U\1/')" "dont_ask" +prompt APPLICATION_NAME_CAPITALIZED_MAN_PART "The capitalized name of the application (for documentation also with a man section part)" "$(echo "$APPLICATION_NAME" | sed 's/\([a-z]\)/\U\1(1)/')" "dont_ask" prompt APPLICATION_VERSION "The version of this program, without the prefix" "0.1.0" prompt AUTHOR_NAME "The name of the author (or authors)" "$(git config --get user.name)" |