]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Add cvar-standardize.sh script to qcsrc/tools/
authorotta8634 <k9wolf@pm.me>
Mon, 9 Dec 2024 14:31:53 +0000 (22:31 +0800)
committerotta8634 <k9wolf@pm.me>
Mon, 9 Dec 2024 14:31:53 +0000 (22:31 +0800)
commit2aa7ef847236f2299695a9fa03b46b5ab1b0f725
tree490c904d66be30ba1ea1db2dce5875403ad20ed7
parentfee7222486d316670551b18d677c2214939d2a2c
Add cvar-standardize.sh script to qcsrc/tools/

Added a bash script to somewhat-standardize cvar descriptions so that they're no longer a huge mess.
Will run the script in the following commit.
Rules this applies are outlined by L114-L122:
- remove_ending_period "${file}"
- change_colons_to_equals "${file}"
- quote_options "${file}"
- uppercase_notes "${file}"
- lowercase_after_notes "${file}"
- lowercase_option_first_letter "${file}"
- lowercase_first_letter "${file}"
- lowercase_after_sentences "${file}"
- # Americanizing spelling will have to be done manually
Since it's not perfect, cvar lines can be "opted out" from the script by appending "// script-ignore".
qcsrc/tools/cvar-standardize.sh [new file with mode: 0644]