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 --- gpp.1 | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'gpp.1') diff --git a/gpp.1 b/gpp.1 index 31af553..af531d4 100644 --- a/gpp.1 +++ b/gpp.1 @@ -1,4 +1,4 @@ -.TH GPP 1 gpp +.TH GPP 1 GPP .SH NAME gpp - Bash-based preprocessor for anything @@ -29,7 +29,7 @@ gpp stands for General Preprocessor. .B 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 parts +directives are used to automate the writing of parts of the document. .PP The preprocessing directives start with a symbol (or @@ -38,7 +38,7 @@ this symbol is .B @ (at). .PP -Any line starting with +Any line starting with .B @< (where .B @ @@ -73,13 +73,13 @@ code to run. Additionally, .B gpp supports variable substitution. .BI @{ VARIABLE } -will be replaces by the value if the variable -(possibility environment variable) +will be replaced by the value of the variable +(possibly an environment variable) .IR VARIABLE . .B gpp supports all modifiers that .BR bash (1) -(or which ever +(or whichever .I shell is selected) supports. For example, if you want the value to be included but uppercase you can write @@ -88,8 +88,7 @@ or .BI @{ VARIABLE ,,} for lowercase. .B gpp -also supports mathematical expressions that the via -the shells +also supports mathematical expressions via the shell's .BI $(( EXPRESSION )) syntax, by using .BR @(( \fIEXPRESSION\fP )) . @@ -232,15 +231,15 @@ line if the environment variable is defined and is not empty. .PP .nf -@>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 @