From 88b7fdcd329a1bcd7e4358326ce2e290a2e85176 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:27:55 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 23 +++++++++++------------ config.mk | 4 +++- gpp.1 | 25 ++++++++++++------------- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README b/README index 8e7137f..f45b02b 100644 --- a/README +++ b/README @@ -13,7 +13,7 @@ ETYMOLOGY DESCRIPTION gpp lets a developer embed directives written in GNU Bash (this can be changed) into any text document. - These directives are used to automate the writting of + These directives are used to automate the writing of parts of the document. The preprocessing directives start with a symbol @@ -34,15 +34,14 @@ DESCRIPTION Preprocessing directives can also be inline. For this, use @(COMMAND) where COMMAND is the Bash code to run. Additionally, gpp supports variable substitution. - @{VARIABLE} will be replaces by the value if the - variable (possibility environment variable) VARIABLE. - gpp supports all modifiers thats Bash (or which ever + @{VARIABLE} will be replaced by the value of the + variable (possibly an environment variable) VARIABLE. + gpp supports all modifiers that Bash (or whichever shell is selected) supports. For example, if you want the value to be included but uppercase you can write @{VARIABLE^^}, or @{VARIABLE,,} for lowercase. gpp - also supports mathematical expressions that the via - the shells $((EXPRESSION)) syntax, by using - @((EXPRESSION)). + also supports mathematical expressions via the shell's + $((EXPRESSION)) syntax, by using @((EXPRESSION)). Everything that is not a preprocessing directive is echo verbatim, except all @@ are replaced by @. @@ -97,13 +96,13 @@ EXAMPLES the environment variable HELLO is defined and is not empty. - @>if [ -z "$HELLO" ]; the + @>if [ -z "$HELLO" ]; then Hello world @>fi - Mutliline preprocessor directive + Multiline preprocessor directive This example creates the function uppercase() that - convert lower case ASCII leters to uper case. + converts lower case ASCII letters to upper case. @if [ -z "$HELLO" ]; the +@>if [ -z "$HELLO" ]; then Hello world @>fi .fi -.SS Mutliline preprocessor directive +.SS Multiline preprocessor directive This example creates the function .BR uppercase () -that convert lower case ASCII leters to uper case. +that converts lower case ASCII letters to upper case. .PP .nf @