GBS Logo HOME Generic Build Support (GBS) - User Manual
The Command-line Interface Bottom Doc. Button

Description Bottom Doc. Button Top Document Button Down Section Button Blank

GBS is controlled by command-lines in an X-term or DOS-box. Here is the general behaviour of the commands:

Entering Commands Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Blank

In general: All GBS-commands accept --h for short help and --help for long help
--inc=filespec will redirect the reading of the command-line arguments to a file.

Command Syntax Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

All commands have the format: command [ positional-arg | gbs-option | gbs-env-setting ]...

positional-arg

Positional arguments are specified in this document as <1>, <2>, <3>
<*> specifies: Remaining (or all if none other specified)

gbs-option

All gbs-options start with --

Boolean type

--opt and --opt+ specify value 1
--opt- Specifies value 0

String type

Alphanumeric values
Specify: --opt=value
Specify: --opt="value-with-spaces"
Specify: --opt='value-with-spaces'

Integer type

Only numbers allowed
Specify: --opt=num-value

Time type

Delta (+) and Absolute (=). Default is Absolute (=)
Syntax: [+|=][[H]H:][M]M
Specify Delta: --opt=+HH:MM
Specify Absolute--opt=HH:MM

Array qualifier

Allows specification of multiple values separated by ',' (comma)

gbs-env-setting

By specifying GBS_env-name=value some specific GBS Environment Variables may be given a different value for the duration of the command execution.
The GBS_ prefix may be omitted.

Wildcards (globbing) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Wildcards (* and ?) behave in Windows the same as on Linux (UNIX-style).
This means that wild-card expansion is performed immediately on the current directory. If no match is found, the string will remain as-is.

Inserting space characters Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

The command-line works with elements separated by white-space.
Sometimes there is a need to embed spaces in line-elements.
E.g.: -DTEXT=STATUS QUO
Placing an element between "" or ' ' may not always work.
The GBS-commands will replace all occurrences of %_ (Linux), $_ (Windows) and %20 (all) in the command-line by one space.
E.g.: -DTEXT=STATUS%_QUO ⇒ "STATUS QUO"

Prompts Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

In a prompt, possible values are embedded in parenthesis
e.g.:
GBS: Are you sure? (y/n):

In a prompt, the default value is embedded in square brackets
e.g.:
GBS: Are you sure? (y/n)[y]:

Breaking off during prompt Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Entering a single '!' will quit the script.
This is safer than the usual CTRL-C.
All commands can be safely terminated by entering '!' at any prompt. No action will be performed.

'Help' during prompt Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Entering a single '?' will give you some additional information on the prompt.
Not always and not excessive.

Messages Bottom Doc. Button Top Document Button Blank Blank Blank Up Chapter Button

All messages generated by GBS are prefixed by the name of the file generating the message in uppercase.
This distinguishes messages generated by GBS from those generated by the OS and/or called application(s).

command_line.html