Release RMC-06.02
(2024-04-29)
|
ContentsDescriptionEnvironment| Install| Setup| Startup| Getting Started| Commands| General notes on the GBS command-line environment
DescriptionEnvironmentOS / ShellGBS runs on:
WSL ConsiderationsYou will need:
Linux considerationsOn some Linux distributions some necessary bash commands are not installed. You will need:
PerlGBS is based on Perl-scripts.Perl must be installed and the perl command must be either in the PATH or
specified via an Environment-Variable (GBS_PERL_PATH).You need at least Perl version 5.16.3. More information on installing Perl for GBS can be found in Install Notes→Environment InstallGBS can be installed in two ways:
If you need to install GBS yourself:
SetupTo setup GBS:If setup was not executed by Install:
StartupStartup GBSUse the 'GBS Startup [cur]' shortcut to startup GBS.It may be on your Desktop and/or the Programs Folder. If it is not present (maybe you do not have a desktop or deleted it...):
Enter: gbs The general GBS command line interface is started. The first time you startup GBS you may need to give its some additional information: Just answer the questions. Define your own editorIn GBS you use the gbsedit command to edit (GBS) files. Sometimes other GBS functions may invoke the editorThe gbsedit command has a lot of builtin knowledge of .gbs files. It will also aid you in editing your code. By default GBS uses Notepad on Win32 and gedit on Linux. You may want to change that to your favourite editor: gbssettings → Change Config settings → Edit EditorMake sure you use an editor that startup fast after multiple invocations (or stays alive). Use a different Terminal typeBy default GBS uses CMD Console on Win32 and xterm on Linux.To change the current Terminal: gbssettings → Change Config settings → Edit TerminalSupported Terminals:
GBS Manual PageTo obtain current information on all implemented GBS commands enter: gbsmanGBS HelpTo obtain extensive Help in HTML format (including this page) enter: gbshelpGetting StartedOrganising your GBS-WAs / SystemsYou can place a GBS-WA/System anywhere you want. You can also have them all on totally different locations. They do not need to be grouped in one directory, although that is a good idea.The default for the GBS WorkArea Path is:
SystemName and SystemIdThe SystemName is the generic name of your project.The SystemId is the parent-directory of your GBS WorkArea. It is important that SystemId reflects the SystemName:
Remember that GBS does not like spaces in directory and filenames and that they are case sensitive! Yes, also on Win32! Connect to an existing GBS System (--add)
Create a new GBS-WA/System (--new)You enter swr --new.Creating a new GBS-WA is serious business. You can find out how to do it in Create a GBS-WA/System A good understanding of the concept and principles of GBS is needed. Once done however, things get extremely simple, convenient and fast. CommandsUse GBS to navigate through your directoriesAfter you have once set them GBS 'remembers' the following 'currencies'
Displaying CurrenciesTo display your currencies just enter: gbsCurrency commandsswr Switch System: set/change the current System (and SubSystem (and Component))sws Switch SubSystem: set/change the current SubSystem (and Component) swc Switch Component: To set/change the current Component. This command ends with an explicit cdsrc swb Switch Build: set/change the current Build Basic commandsgbsedit Create/Edit a file (you can define your own editor with gbssettings )gbsbuild Compile, Link, etc. one or more files gbssysbuild Compile, Link, etc. the whole System (Runs in batch - with logfile) Navigation commands
Other GBS commandsNote that all GBS-commands accept --h for short help and --help for long helpgbsbuild, gbssysbuildCommands to compile, link, etc directlygbsmake, gbssysmakeCommands to compile, link, etc using 'make'gbsaudit, gbssysauditCommands to run Audit programs like QAC and QAC++gbsmaintThis command enables you to select and execute a number of GBS maintenance functions.Like:
gbssettingsThis command enables you to define your customizations. (Beeps on/off, Define Editor, etc.)gbsscmThis command enables you to select and execute SCM-related functions in GBS.There are a lot more command in GBS. They can be found at All Commands. General notes on the GBS command-line environmentIn a prompt, possible values are embedded in parenthesise.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]:
Entering a single '!' will quit the script. Entering a single '?' will give you some additional help (if available) In general, options for GBS-commands start with -- (double hyphens). This is to be able to discern options for GBS and options for applications (like QAC) All GBS-commands accept --h for short help and --help for long help More in The Command-line Interface |