GBS Logo HOME Generic Build Support (GBS) - User Manual
All Commands Bottom Doc. Button

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

General Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Blank

All commands have the format: command [args | gbs-options]...
gbs-options always start with: -- (hyphen hyphen)
General options (always available): General options (mostly available):
  command --h   will give you short help
  command --h option...   will give you short help on the specified option(s)
  command --help   will give you more extensive help
  command --help option...   will give you long help on the specified option(s)
  --verbose[+|-]   Extensive logging messages if '' or '+'
Always '+' in BATCH jobs (gbssys* commands)
  --inc file   will take the contents of file file as if it were typed on the commandline.
Empty lines and lines starting with '#' are ignored.
Multiple occurrence and nesting is allowed.

General Syntax Description

Refer to The Command Line Interface

Index

Install.bat, bgpids, detab, filerep, fixeol, gbs, gbsaudit, gbsbash, gbsbg, gbsbldcheck, gbsbuild, gbsedit, gbsexit, gbsexport, gbsgui, gbshelp, gbsinit, gbslocate, gbsmaint, gbsmake, gbsmakemake, gbsman, gbsnav, gbsscm, gbssettings, gbssetup_, gbsshow, gbssilo, gbsstart, gbsstart_here, gbsstats, gbssudo, gbsswa, gbsswb, gbsswc, gbsswr, gbssws, gbsswt, gbssysall, gbssysaudit, gbssysbuild, gbssysmake, gbssystool, gbsuninstall, gbswhich, gbsxref, grep, pgrep, proto, swa, swb, swc, swr, sws, swt, tail, touch, win2unix, wordrep, wsudo

bgpids (Non-GBS - Linux only) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Show and/or kill background processes

Syntax:

bgpids [ USERS... ]
[ -a[+|-] ]
[ -f[+|-] ]
[ -k=process_to_kill ]

Semantics:

<*> USERS
string
array optional
<empty> == current user
Default=
-a[+|-] do_all
boolean
scalar optional
Include all processes
Default=0
-f[+|-] do_fg
boolean
scalar optional
Include parent (foreground) processes
Default=0
-k=process_to_kill process_to_kill
integer
scalar optional
Kill specified process-tree
Default=

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

The gbs command will either startup GBS if not started or show the GBS currencies

gbsinit (gbs - Before GBS is started ) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Startup GBS

Syntax:

gbsinit
[ --nos[+|-] ]
[ --nor[+|-] ]

Semantics:

--nos[+|-] nosystem
boolean
scalar optional
Do not implicitly swr to current System
Default=0
--nor[+|-] noroot
boolean
scalar optional
Do not implicitly swr to current System - kept for backward compatability
Default=0

Constraints:

The following combinations are not allowed:
    --nos+ AND --nor+

Note:

Alias for this command is 'gbs'. Exists only when GBS was not yet started

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

Purpose:

Perform an AUDIT on one or more files

Syntax:

gbsaudit ...
[ --i[+|-] ]
[ --stdout[+|-] ]
[ --vs[+|-] ]
[ --audit=audit_name ]
[ --build=build_name ]
[ --aud[+|-] ]
[ --sum[+|-] ]
[ --caller=caller ]
[ --jobs=jobs ]
[ Environment_Variable=Value ]...

Semantics:

<*> comp_file_opts
string
array mandatory
src-files and AUDIT-options. ALL = *:*.*
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue auditing after error(s)
Default=0
--stdout[+|-] show_stdout
boolean
scalar optional
Show errorlines (0 when not interactive)
Default=1
--vs[+|-] view_sum
boolean
scalar optional
View summary at completion
Default=1
--audit=audit_name audit_name
string
scalar optional
choice: . $GBS_AUDITS
Audit to run
Default=.
--build=build_name build_name
string
scalar optional
choice: . $GBS_BUILDS
Build Environment
Default=.
--aud[+|-] run_audit
boolean
scalar optional
Run audit
Default=1
--sum[+|-] run_summary
boolean
scalar optional
Create summary
Default=1
--caller=caller caller
string
scalar optional
choice: gbsaudit gbssysaudit
Internal use.
Default=gbsaudit
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max. nr. parallel jobs
Default=2

Environment Variables:

(GBS_) LOG_PATH (GBS_) MODE (GBS_) FLAGS_*
(GBS_) APP_*    

Note:

Summary files are written to $GBS_LOG_PATH. View with gbssilo

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

Purpose:

The gbsbash command opens a new WSL bash window
Only available under Windows

Syntax:

gbsbash

Semantics:

None

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

Purpose:

Check if all files have generated

Syntax:

gbsbldcheck [ subsystems... ]
[ --m=max_missing ]
[ --builds=builds,... ]

Semantics:

<*> subsystems
string
array optional
Specific SubSystems
Default=
--m=max_missing max_missing
integer
scalar optional
Cancel SubSys check after this many missing files
Default=20
--builds=builds builds
string
array optional
(wild-)Builds to Build-Check. '' or '*' == All, '.' == Current
Default=

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

Purpose:

Allow user to handle Background Jobs
 1. Show Jobs
 2. View Cur Logfile
 3, Tail Cur Logfile
 4. Cleanup List
 5. View Logfile
    ...
 9. Kill Job

Syntax:

gbsbg [ menu_entry_1 ]

Semantics:

<1> menu_entry_1
integer
scalar optional
range: 1..9
Primary menu entry for single immediate execution
Default=0

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

Purpose:

Create/edit GBS-files and user-files. GBS-files end with .gbs
The switch.gbs, subsys.gbs and site.gbs batch files are also considered GBS-files
Source, Include and glkbt-files are considered user-files
Relevant templates will be used with file-creation
On GBS files, where possible, a syntax check is performed after the edit.

Syntax:

gbsedit <basic_filespec> [ editor_opt ]
[ --nco[+|-] ]

Semantics:

<1> basic_filespec
string
scalar mandatory
file, ./file, rel_filespec, filespec or subdir:file
Default=
<2> editor_opt
string
scalar optional
Editor option. e.g. Line-nr to jump to
Default=
--nco[+|-] no_checkout
boolean
scalar optional
By default files will also be added if non-exist
Default=0

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

Purpose:

Exit and cleanup the GBS environment

Syntax:

gbsexit
[ --quit[+|-] ]

Semantics:

--quit[+|-] quit
boolean
scalar optional
Do not setup the basic GBS functions
Default=0

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

Purpose:

Fill the export and/or res directories from the Components and/or Gen or SubSystem by Build

Syntax:

gbsexport [ export_file_locations... ]
[ --i[+|-] ]
[ --c[+|-] ]
[ --show[+|-] ]
[ Environment_Variable=Value ]...

Semantics:

<*> export_file_locations
string
array optional
<Component>... and/or SUBSYS:
. == Current Component. <empty> == <all>
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--c[+|-] cleanup_all
boolean
scalar optional
Delete all, independent from build
Default=0
--show[+|-] show_actions
boolean
scalar optional
Show all actions
Default=0

Environment Variables:

(GBS_) APP_*    

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

Purpose:

Generate one or more files

Syntax:

gbsbuild ...
[ --i[+|-] ]
[ --build=build_name ]
[ --jobs=jobs ]
[ Environment_Variable=Value ]...

Semantics:

<*> comp_file_opts
string
array mandatory
src files to generate with 'generate' options. ALL = *:*.*
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation regardless of error(s)
Default=0
--build=build_name build_name
string
scalar optional
choice: . $GBS_BUILDS
Build to run
Default=.
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs
Default=2

Environment Variables:

(GBS_) DEBUGGER (GBS_) MODE (GBS_) OPT
(GBS_) MAP (GBS_) FLAGS_* (GBS_) APP_*

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

Purpose:

Startup the GBS GUI

Syntax:

gbsgui
[ --t[+|-] ]
[ --geo=geo ]

Semantics:

--t[+|-] test_mode
boolean
scalar optional
Run in test-mode
Default=0
--geo=geo geo
string
scalar optional
Start geometry - Internal use (width, height, x, y)
Default=.

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

Purpose:

Present help on GBS in HTML browser

Syntax:

gbshelp

Semantics:

None

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

Purpose:

Locate a file according to include-settings and assigns the location to a specified Environment Variable

Syntax:

gbslocate <env_name> <file> <prefix> ...

Semantics:

<1> env_name
string
scalar mandatory
Env Variable to contain the filespec
Default=
<2> file
string
scalar mandatory
The file to search
Default=
<3> prefix
string
scalar mandatory
prefix string preceding all path-list elements. e.g: -I
Default=
<*> path-list
string
array mandatory
The directories to search preceded by <prefix>
Default=

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

Purpose:

Allow user to execute General Maintenance functions
 1. Audits Handling
 2. Cleanup
 3. Map Network Drives (Linux<->Windows)
 5. User Tools
 6. Integrator Tools
 7. Administrator Tools
 8. Check/Fix GBS Directory Structure
 9. Owners-file Maintenance

Syntax:

gbsmaint [ menu_entry_1 ] [ menu_entry_2 ] [ menu_entry_3 ] [ menu_entry_4 ] [ menu_entry_5 ]

Semantics:

<1> menu_entry_1
integer
scalar optional
range: 1..9
Primary menu entry for single immediate execution
Default=0
<2> menu_entry_2
integer
scalar optional
greater: 0
Secondary menu entry for single immediate execution
Default=0
<3> menu_entry_3
integer
scalar optional
greater: 0
3rd menu entry for single immediate execution
Default=0
<4> menu_entry_4
integer
scalar optional
greater: 0
4th menu entry for single immediate execution
Default=0
<5> menu_entry_5
integer
scalar optional
greater: 0
5th menu entry for single immediate execution
Default=0

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

Purpose:

'make' one or more files

Syntax:

gbsmake [ comp_file_opts... ]
[ --r[+|-] ]
[ --i[+|-] ]
[ --build=build_name ]
[ --mo[+|-] ]
[ --jobs=jobs ]
[ Environment_Variable=Value ]...

Semantics:

<*> comp_file_opts
string
array optional
bld files to make with 'make' options. ALL = *:*.*
Default=
--r[+|-] reverse_type
boolean
scalar optional
Specify source-types instead of build-types
Default=0
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--build=build_name build_name
string
scalar optional
choice: . $GBS_BUILDS
Build to run
Default=.
--mo[+|-] make_only
boolean
scalar optional
Run 'make' only (show make results)
Default=0
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs
Default=2

Environment Variables:

(GBS_) DEBUGGER (GBS_) MODE (GBS_) OPT
(GBS_) MAP (GBS_) FLAGS_* (GBS_) APP_*

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

Purpose:

Make make-file(s) for the current SubSystem

Syntax:

gbsmakemake [ components... ]
[ --i[+|-] ]

Semantics:

<*> components
string
array optional
. == current component, <empty> == all
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0

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

Purpose:

The gbsman command gives a 'more' list of all GBS commands

Syntax:

gbsman

Semantics:

None

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

Purpose:

Startup the Navigator in the current directory

Syntax:

gbsnav

Semantics:

None

gbsscm (scm) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Execute basic SCM commands using the current SCMS

Syntax:

gbsscm <command> [ files... ]
[ --r[+|-] ]
[ --c[+|-] ]

Semantics:

<1> command
string
scalar mandatory
choice: ? info state co ci unco mkdir mktxt add move get_ignore set_ignore remove import connect select
Basic SCM Command
Default=
<*> files
string
array optional
File / Directory  List
Default=
--r[+|-] recursive
boolean
scalar optional
Add whole directory tree
Default=0
--c[+|-] use_cache
boolean
scalar optional
Use cache
Default=0

Note:

info
state   <file-dir>...
co      <file-dir>...
ci      <file-dir>...
unco    <file-dir>...
mkdir   <dir>...
mktxt   <file>...
add     <file-dir>...
get_ignore  <dir>
set_ignore  <dir> <ignore_list>...
remove  <file-dir>...
import  <from-dir> [<to-dir>]
connect
select

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

This command has been replaced by gbssettings

gbssettings (gbssettings.bat or gbssettings.sh) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Setup/Maintain Basic GBS settings (Profile/EnvVars).

Syntax:

gbssettings [ menu_entry_1 ] [ menu_entry_2 ]

Semantics:

<1> menu_entry_1
integer
scalar optional
range: 1..5
Primary Menu entry for immediate execution
Default=0
<2> menu_entry_2
integer
scalar optional
greater: 0
Secondary Menu entry for single immediate execution
Default=0
More information here

gbsuninstall (gbsuninstall.bat or gbsuninstall.sh) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Unsetup/Uninstall GBS version(s).

Syntax:

gbsuninstall [ menu_entry_1 ] [ menu_entry_2 ] [ menu_entry_3 ]

Semantics:

<1> menu_entry_1
integer
scalar optional
range: 1..9
Primary menu entry for single immediate execution
Default=0
<2> menu_entry_2
integer
scalar optional
greater: 0
Secondary menu entry for single immediate execution
Default=0
<3> menu_entry_3
integer
scalar optional
greater: 0
3rd menu entry for single immediate execution
Default=0

gbsshow (gbs) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Show GBS currencies

Syntax:

gbsshow
[ --brief[+|-] ]

Semantics:

--brief[+|-] brief
boolean
scalar optional
Brief (short) listing
Default=0

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

Purpose:

Generate silo index and show in HTML browser

Syntax:

gbssilo
[ --ci[+|-] ]
[ --cs[+|-] ]
[ --vi[+|-] ]
[ --noc[+|-] ]

Semantics:

--ci[+|-] create_index
boolean
scalar optional
Create the HTML Index
Default=1
--cs[+|-] create_summaries
boolean
scalar optional
Create the HTML Summaries
Default=1
--vi[+|-] view_index
boolean
scalar optional
View index in HTML browser
Default=1
--noc[+|-] no_create
boolean
scalar optional
No HTML Creation (forces --ci and --cs to '-')
Default=0

Constraints:

The following combinations are not allowed:
    --noc+ AND --ci+ or --cs+

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

Purpose:

Perform an AUDIT on part of or whole System

Syntax:

gbssysaudit [ steps... ]
[ --i[+|-] ]
[ --vs[+|-] ]
[ --audits=audits,... ]
[ --builds=builds,... ]
[ --files=files,... ]
[ --aud[+|-] ]
[ --sum[+|-] ]
[ --fg[+|-] ]
[ --at=delay ]
[ --n[+|-] ]
[ --wait[+|-] ]
[ --jobs=jobs ]
[ --c=comment ]
[ Environment_Variable=Value ]...

Semantics:

<*> steps
string
array optional
Steps and/or Aliases. <empty> == all select steps, 'CUR', 'ALL' == force all steps, 'CUR', '?' == show steps
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--vs[+|-] view_sum
boolean
scalar optional
View summary at completion
Default=1
--audits=audits audits
string
array optional
choice: . $GBS_AUDITS
(wild-)Audits to run. '' or '*' == All, '.' == Current
Default=*
--builds=builds builds
string
array optional
choice: . $GBS_BUILDS
(wild-)Builds to Build. '' or '*' == All, '.' == Current
Default=*
--files=files files
string
array optional
Files to audit
Default=*:*.*
--aud[+|-] run_audit
boolean
scalar optional
Run audit
Default=1
--sum[+|-] run_summary
boolean
scalar optional
Create summary
Default=1
--fg[+|-] foreground
boolean
scalar optional
Runs in the foreground if set
Default=0
--at=delay delay
time ([+=]hh:mm or [+=]mm) or now)
scalar optional
Starting time (10:20), delta (+10:10) or now
Default=now
--n[+|-] notify
boolean
scalar optional
Notify user on completion (bg/nowait only)
Default=$GBS_NOTIFY
--wait[+|-] wait
boolean
scalar optional
Wait for completion of bg jobs
Default=0
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs within a submitted job
Default=2
--c=comment comment
string
scalar optional
Comments - will be shown in Summary - Specify %20 for space
Default=

Constraints:

The following combinations are not allowed:
    <steps> = ALL AND <steps>
    <steps> = CUR AND <steps> or --audits or --builds
    <steps> = ? AND <steps>
    --fg+ AND --at or --n+ or --wait+
    --wait+ AND --n+
    --sum- AND --vs+

Environment Variables:

(GBS_) LOG_PATH (GBS_) FLAGS_* (GBS_) APP_*

Note:

Summary files are written to $GBS_SILO_PATH/audits. View with gbssilo
See also: The gbssys... commands
Use gbsbg command to View and/or Kill a Job

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

Purpose:

Generate part of or whole System

Syntax:

gbssysbuild [ steps... ]
[ --i[+|-] ]
[ --mm[+|-] ]
[ --export[+|-] ]
[ --builds=builds,... ]
[ --fg[+|-] ]
[ --files=files,... ]
[ --at=delay ]
[ --n[+|-] ]
[ --wait[+|-] ]
[ --jobs=jobs ]
[ --c=comment ]
[ Environment_Variable=Value ]...

Semantics:

<*> steps
string
array optional
Steps and/or Aliases. <empty> == all select steps, 'ALL' == force all steps, '?' == show steps
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--mm[+|-] run_makemake
boolean
scalar optional
Run 'gbsmakemake' on completion of Full GBS SubSystems
Default=1
--export[+|-] run_export
boolean
scalar optional
Run 'gbsexport' on completion
Default=1
--builds=builds builds
string
array optional
choice: . $GBS_BUILDS
(wild-)Builds to Build. '' or '*' == All, '.' == Current
Default=*
--fg[+|-] foreground
boolean
scalar optional
Runs in the foreground if set
Default=0
--files=files files
string
array optional
Files to build
Default=*:*.*
--at=delay delay
time ([+=]hh:mm or [+=]mm) or now)
scalar optional
Starting time (10:20), delta (+10:10) or now
Default=now
--n[+|-] notify
boolean
scalar optional
Notify user on completion (bg/nowait only)
Default=$GBS_NOTIFY
--wait[+|-] wait
boolean
scalar optional
Wait for completion of bg jobs
Default=0
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs within a submitted job
Default=2
--c=comment comment
string
scalar optional
Comments - will be shown in Summary - Specify %20 for space
Default=

Constraints:

The following combinations are not allowed:
    <steps> = ALL AND <steps>
    <steps> = CUR AND <steps> or --builds
    <steps> = ? AND <steps>
    --fg+ AND --at or --n+ or --wait+
    --wait+ AND --n+

Environment Variables:

(GBS_) LOG_PATH (GBS_) DEBUGGER (GBS_) MODE
(GBS_) OPT (GBS_) MAP (GBS_) FLAGS_*
(GBS_) APP_*    
See also: The gbssys... commands
Use gbsbg command to View and/or Kill a Job

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

Purpose:

Generate part of or whole System using 'make'

Syntax:

gbssysmake [ steps... ]
[ --i[+|-] ]
[ --smm[+|-] ]
[ --mm[+|-] ]
[ --export[+|-] ]
[ --builds=builds,... ]
[ --files=files,... ]
[ --fg[+|-] ]
[ --at=delay ]
[ --n[+|-] ]
[ --wait[+|-] ]
[ --jobs=jobs ]
[ --c=comment ]
[ Environment_Variable=Value ]...

Semantics:

<*> steps
string
array optional
Steps and/or Aliases. <empty> == all select steps, 'CUR', 'ALL' == force all steps, '?' == show steps
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--smm[+|-] start_makemake
boolean
scalar optional
Pre-generate the make-file
Default=1
--mm[+|-] run_makemake
boolean
scalar optional
Run 'gbsmakemake' on completion of Full GBS SubSystems
Default=1
--export[+|-] run_export
boolean
scalar optional
Run 'gbsexport' on completion
Default=1
--builds=builds builds
string
array optional
choice: . $GBS_BUILDS
(wild-)Builds to Build. '' or '*' == All, '.' == Current
Default=*
--files=files files
string
array optional
Files to make
Default=*:*.*
--fg[+|-] foreground
boolean
scalar optional
Runs in the foreground if set
Default=0
--at=delay delay
time ([+=]hh:mm or [+=]mm) or now)
scalar optional
Starting time (10:20), delta (+10:10) or now
Default=now
--n[+|-] notify
boolean
scalar optional
Notify user on completion (bg/nowait only)
Default=$GBS_NOTIFY
--wait[+|-] wait
boolean
scalar optional
Wait for completion of bg jobs
Default=0
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs within a submitted job
Default=2
--c=comment comment
string
scalar optional
Comments - will be shown in Summary - Specify %20 for space
Default=

Constraints:

The following combinations are not allowed:
    <steps> = ALL AND <steps>
    <steps> = CUR AND <steps> or --builds
    <steps> = ? AND <steps>
    --fg+ AND --at or --n+ or --wait+
    --wait+ AND --n+

Environment Variables:

(GBS_) LOG_PATH (GBS_) DEBUGGER (GBS_) MODE
(GBS_) OPT (GBS_) MAP (GBS_) FLAGS_*
(GBS_) APP_*    
See also: The gbssys... commands
Use gbsbg command to View and/or Kill a Job

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

Purpose:

Perform TOOL on part of or whole System

Syntax:

gbssystool [ steps... ]
[ --i[+|-] ]
[ --vs[+|-] ]
[ --tools=tools,... ]
[ --fg[+|-] ]
[ --at=delay ]
[ --n[+|-] ]
[ --wait[+|-] ]
[ --jobs=jobs ]
[ --c=comment ]
[ Environment_Variable=Value ]...

Semantics:

<*> steps
string
array optional
Steps and/or Aliases. <empty> == all select steps, 'CUR', 'ALL' == force all steps, '?' == show steps
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--vs[+|-] view_sum
boolean
scalar optional
View summary at completion
Default=1
--tools=tools tools
string
array optional
choice: . $GBS_TOOLS
(wild-)Tools to execute. '' or '*' == All, '.' == Current
Default=*
--fg[+|-] foreground
boolean
scalar optional
Runs in the foreground if set
Default=0
--at=delay delay
time ([+=]hh:mm or [+=]mm) or now)
scalar optional
Starting time (10:20), delta (+10:10) or now
Default=now
--n[+|-] notify
boolean
scalar optional
Notify user on completion (bg/nowait only)
Default=$GBS_NOTIFY
--wait[+|-] wait
boolean
scalar optional
Wait for completion of bg jobs
Default=0
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs within a submitted job
Default=2
--c=comment comment
string
scalar optional
Comments - will be shown in Summary - Specify %20 for space
Default=

Constraints:

The following combinations are not allowed:
    <steps> = ALL AND <steps>
    <steps> = CUR AND <steps> or --tools
    <steps> = ? AND <steps>
    --fg+ AND --at or --n+ or --wait+
    --wait+ AND --n+

Environment Variables:

(GBS_) LOG_PATH (GBS_) FLAGS_* (GBS_) APP_*

Note:

Output files (Summary files) are written to $GBS_SILO_PATH/audits. View with gbssilo
See also: The gbssys... commands
Use gbsbg command to View and/or Kill a Job

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

Purpose:

Execute gbssysbuild/gbssysmake, gbssysaudit and gbssystool commands

Syntax:

gbssysall [ steps... ]
[ --i[+|-] ]
[ --vs[+|-] ]
[ --audits=audits,... ]
[ --builds=builds,... ]
[ --tools=tools,... ]
[ --current[+|-] ]
[ --files=files,... ]
[ --make[+|-] ]
[ --fg[+|-] ]
[ --at=delay ]
[ --n[+|-] ]
[ --wait[+|-] ]
[ --jobs=jobs ]
[ --c=comment ]
[ Environment_Variable=Value ]...

Semantics:

<*> steps
string
array optional
Steps and/or Aliases. <empty> == all select steps, 'ALL' == force all steps, '?' == show steps
Default=
--i[+|-] ignore_errors
boolean
scalar optional
Continue generation after error(s)
Default=0
--vs[+|-] view_sum
boolean
scalar optional
View summary at completion
Default=1
--audits=audits audits
string
array optional
choice: . $GBS_AUDITS
(wild-)Audits to run. '' or '*' == All, '.' == Current
Default=*
--builds=builds builds
string
array optional
choice: . $GBS_BUILDS
(wild-)Builds to Build. '' or '*' == All, '.' == Current
Default=*
--tools=tools tools
string
array optional
choice: . $GBS_TOOLS
(wild-)Tools to Execute. '' or '*' == All, '.' == Current, '-' == None
Default=*
--current[+|-] current
boolean
scalar optional
Sets --audits, --builds and --tools to '.' (current)
Default=0
--files=files files
string
array optional
Files to audit
Default=*:*.*
--make[+|-] make
boolean
scalar optional
Run gbssysmake instead of gbssysbuild
Default=0
--fg[+|-] foreground
boolean
scalar optional
Runs in the foreground if set
Default=0
--at=delay delay
time ([+=]hh:mm or [+=]mm) or now)
scalar optional
Starting time (10:20), delta (+10:10) or now
Default=now
--n[+|-] notify
boolean
scalar optional
Notify user on completion (bg/nowait only)
Default=$GBS_NOTIFY
--wait[+|-] wait
boolean
scalar optional
Wait for completion of bg jobs
Default=0
--jobs=jobs jobs
integer
scalar optional
range: 1..9
Max nr parallel jobs within a submitted job
Default=2
--c=comment comment
string
scalar optional
Comments - will be shown in Summary - Specify %20 for space
Default=

Constraints:

The following combinations are not allowed:
    <steps> = ALL AND <steps>
    <steps> = CUR AND <steps> or --audits or --builds or --tools
    <steps> = ? AND <steps>
    --current+ AND --audits or --builds or --tools
    --fg+ AND --at or --n+ or --wait+
    --wait+ AND --n+

Environment Variables:

(GBS_) LOG_PATH (GBS_) FLAGS_* (GBS_) APP_*

Note:

Commands are only executed if applicable
See also: The gbssys... commands
Use gbsbg command to View and/or Kill a Job

gbsstart (%GBS_BASE_PATH%\gbsstart.bat or $GBS_BASE_PATH/gbsstart.sh) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Startup GBS and execute a (GBS) command. To be used for integration of GBS in other tools

Syntax:

gbsstart <system_spec> [ subsystem ] [ component ]
[ --build=build ]
[ --audit=audit ]
[ --tool=tool ]
--exec=execute_command
[ --rel=rel ]

Semantics:

<1> system_spec
string
scalar mandatory
System: '-' == none, '.' == current, '!' == CWD, '!<abs_file/dir_spec>', '!!' == CWD = GBS_SYSTEM_PATH
Default=!
<2> subsystem
string
scalar optional
SubSystem: '-' == none, '.' or '' == current
Default=
<3> component
string
scalar optional
Component: '-' == none, '.' or '' == current
Default=
--build=build build
string
scalar optional
Build: '-' == none, '.' or '' == current
Default=.
--audit=audit audit
string
scalar optional
Audit: '-' == none, '.' or '' == current
Default=.
--tool=tool tool
string
scalar optional
Toolt: '-' == none, '.' or '' == current
Default=.
--exec=execute_command execute_command
string
scalar mandatory
(GBS-)Command to execute. 'none' = OK
Default=
--rel=rel rel
string
scalar optional
Specific GBS release.  You can also specify 'cur' or 'current'
Default=.

Constraints:

The following combinations are not allowed:
    <system_spec> = - AND <subsystem>
    <system_spec> = - AND <component>
    <subsystem> = - AND <component>

More info:

For Tools integration purposes, use the replacing gbsstart_here command.

gbsstart_here (%GBS_BASE_PATH%\gbsstart_here.bat or $GBS_BASE_PATH/gbsstart_here.sh) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Startup GBS and execute a (GBS) command, using the CWD.
To be used for integration of GBS in other Development Tools / Editors.
Replaces 'gbsstart' in most situations

Syntax:

gbsstart_here <gbs_command> [ gbs_command_args... ]

Semantics:

<1> gbs_command
string
scalar mandatory
GBS command. e.g.: gbsbuild
Default=
<*> gbs_command_args
string
array optional
GBS command args, including --options
Default=

More info:

Integration with other Tools

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

Purpose:

Show GBS System Statistics

Syntax:

gbsstats
[ --lines[+|-] ]
[ --cs[+|-] ]
[ --vi[+|-] ]

Semantics:

--lines[+|-] count_lines
boolean
scalar optional
Count lines in src, inc and loc
Default=0
--cs[+|-] create_stats
boolean
scalar optional
Create the HTML Statistics
Default=1
--vi[+|-] view_index
boolean
scalar optional
View index in HTML browser
Default=1

swc (gbsswc) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Set and/or Create new Current Component

Syntax:

gbsswc swc [ component ]
[ --build=build ]
[ --audit=audit ]
[ --new[+|-] ]
[ --delete[+|-] ]
[ --nocd[+|-] ]

Semantics:

<1> component
string
scalar optional
Component: '' == ASK, '-' == none, '.' == current
Default=
--build=build build
string
scalar optional
Build: '-' == none, '.' == current
Default=
--audit=audit audit
string
scalar optional
Audit. '-' == none, '.' == current
Default=
--new[+|-] create_new_component
boolean
scalar optional
Create a new Component
Default=0
--delete[+|-] delete_component
boolean
scalar optional
Delete a Component
Default=0
--nocd[+|-] no_cd
boolean
scalar optional
Do not 'cd' to the selected directories
Default=0

Constraints:

The following combinations are not allowed:
    --new+ AND --delete+ or --build or --audit
    --delete+ AND --new+ or --build or --audit
    <component> = - AND --new+ or --delete+ or --build or --audit

swr (gbsswr) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Set a current System or
- Create a new one
- Add / Remove one from the Systems-List
- Delete one
- Show the Systems-List

Syntax:

gbsswr swr [ system_spec ] [ subsystem ] [ component ]
[ --build=build ]
[ --audit=audit ]
[ --tool=tool ]
[ --new[+|-] ]
[ --add[+|-] ]
[ --remove[+|-] ]
[ --delete[+|-] ]
[ --show[+|-] ]
[ --exec=execute_command ]
[ --nocd[+|-] ]

Semantics:

<1> system_spec
string
scalar optional
System: '' == ASK, '-' == none, '.' == current, '!' == CWD, '!<abs_file/dir_spec>', '!!' == current GBS_SYSTEM_PATH
Default=
<2> subsystem
string
scalar optional
SubSystem: '-' == none, '.' == current
Default=
<3> component
string
scalar optional
Component: '-' == none, '.' == current
Default=
--build=build build
string
scalar optional
Build: '-' == none, '.' == current
Default=
--audit=audit audit
string
scalar optional
Audit: '-' == none, '.' == current
Default=
--tool=tool tool
string
scalar optional
Tool: '-' == none, '.' == current
Default=
--new[+|-] create_new_system
boolean
scalar optional
Create a new System
Default=0
--add[+|-] add_system
boolean
scalar optional
Add a System to the Systems-List
Default=0
--remove[+|-] remove_system
boolean
scalar optional
Remove a System from the Systems-List - do not Delete
Default=0
--delete[+|-] delete_system
boolean
scalar optional
Remove and Delete a System from the Systems-List
Default=0
--show[+|-] show_systems
boolean
scalar optional
Show the Systems-List
Default=0
--exec=execute_command execute_command
string
scalar optional
(GBS-)Command(s) to execute. 'none' = OK
Default=
--nocd[+|-] no_cd
boolean
scalar optional
Do not 'cd' to the selected directories
Default=0

Constraints:

The following combinations are not allowed:
    --new+ AND --add+ or --remove+ or --delete+ or --show+ or --exec or <subsystem> or --build or --audit or --tool
    --add+ AND --new+ or --remove+ or --delete+ or --show+ or --exec or <subsystem> or --build or --audit or --tool
    --remove+ AND --new+ or --add+ or --delete+ or --show+ or --exec or <subsystem> or --build or --audit or --tool
    --delete+ AND --new+ or --add+ or --remove+ or --show+ or --exec or <subsystem> or --build or --audit or --tool
    --show+ AND --new+ or --add+ or --remove+ or --delete+ or --exec or <subsystem> or --build or --audit or --tool
    <system_spec> = - AND --new+ or --add+ or --remove+ or --delete+ or --show+ or --exec or <subsystem> or --build or --audit or --tool
    <subsystem> = - AND <component>
    <system_spec> AND <subsystem> or <component> or --build or --audit or --tool

Note:

You can only '--add' a System if it was originally created by 'swr --new'

sws (gbssws) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Set and/or Create new Current SubSystem

Syntax:

gbssws sws [ subsystem ] [ component ]
[ --build=build ]
[ --audit=audit ]
[ --new[+|-] ]
[ --delete[+|-] ]
[ --nocd[+|-] ]

Semantics:

<1> subsystem
string
scalar optional
SubSystem. '' == ASK, '-' == none, '.' == current
Default=
<2> component
string
scalar optional
Component. '-' == none, '.' == current
Default=
--build=build build
string
scalar optional
Build. '-' == none, '.' == current
Default=
--audit=audit audit
string
scalar optional
Audit. '-' == none, '.' == current
Default=
--new[+|-] create_new_subsys
boolean
scalar optional
Create a new SubSystem
Default=0
--delete[+|-] delete_subsys
boolean
scalar optional
Delete a SubSystem
Default=0
--nocd[+|-] no_cd
boolean
scalar optional
Do not 'cd' to the selected directories
Default=0

Constraints:

The following combinations are not allowed:
    --new+ AND <component> or --delete+ or --build or --audit
    --delete+ AND <component> or --new+ or --build or --audit
    <subsystem> = - AND --new+ or --delete+ or <component> or --build or --audit

swb (gbsswb) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Set and/or Create new Current Build

Syntax:

gbsswb swb [ build ]
[ --new[+|-] ]
[ --remove[+|-] ]
[ --delete[+|-] ]

Semantics:

<1> build
string
scalar optional
Build: '' == ASK, '-' == none, '.' == current
Default=
--new[+|-] create_new_build
boolean
scalar optional
Create a new Build
Default=0
--remove[+|-] remove_build
boolean
scalar optional
Remove a Build from the Builds List
Default=0
--delete[+|-] delete_build
boolean
scalar optional
Delete a Build
Default=0

Constraints:

The following combinations are not allowed:
    --new+ AND --remove+ or --delete+
    --remove+ AND --new+ or --delete+
    --delete+ AND --new+ or --remove+

swa (gbsswa) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Set and/or Create new Current Audit

Syntax:

gbsswa swa [ audit ]
[ --new[+|-] ]
[ --remove[+|-] ]
[ --delete[+|-] ]

Semantics:

<1> audit
string
scalar optional
Audit: '' == ASK, '-' == none, '.' == current
Default=
--new[+|-] create_new_audit
boolean
scalar optional
Create a new Audit
Default=0
--remove[+|-] remove_audit
boolean
scalar optional
Remove an Audit from the Audits List
Default=0
--delete[+|-] delete_audit
boolean
scalar optional
Delete an Audit
Default=0

Constraints:

The following combinations are not allowed:
    --new+ AND --remove+ or --delete+
    --remove+ AND --new+ or --delete+
    --delete+ AND --new+ or --remove+

swt (gbsswt) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Set and/or Create new Current Tool

Syntax:

gbsswt swt [ tool ]
[ --new[+|-] ]
[ --remove[+|-] ]
[ --delete[+|-] ]

Semantics:

<1> tool
string
scalar optional
Tool: '' == ASK, '-' == none, '.' == current
Default=
--new[+|-] create_new_tool
boolean
scalar optional
Create a new Tool
Default=0
--remove[+|-] remove_tool
boolean
scalar optional
Remove a Tool from the Tools List
Default=0
--delete[+|-] delete_tool
boolean
scalar optional
Delete a Tool
Default=0

Constraints:

The following combinations are not allowed:
    --new+ AND --remove+ or --delete+
    --remove+ AND --new+ or --delete+
    --delete+ AND --remove+ or --new+

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

Purpose:

Execute a GBS command in Elevated Mode (SuperUser/Administrator)

Syntax:

gbssudo <command> [ command_args... ]

Semantics:

<1> command
string
scalar mandatory
choice: edit uninstall
GBS command to execute
Default=
<*> command_args
string
array optional
Arguments for <command
Default=

Note:

edit       <file_name>
uninstall  <menu_entries>...

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

Purpose:

Show Build and Audit data. Lookup header-files, sub-files

Syntax:

gbswhich [ what ] [ what_args... ]
[ Environment_Variable=Value ]...

Semantics:

<1> what
string
scalar optional
choice:  ? subsys comp component build audit tool find search
Specify
Default=
<*> what_args
string
array optional
'what'-dependent
Default=

Environment Variables:

(GBS_) FLAGS_*    

Note:

subsys
component
build
build <src_file_type>
build <bld_file_type>
build .glkb
audit
audit  <src_file_type>
tool
find   <include_file> <find_method>
search <source_file>
search <subdir>/<file>

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

Purpose:

Show cross-references using makefiles and/or scope-files Launcher

Syntax:

gbsxref
[ --t[+|-] ]

Semantics:

--t[+|-] test_mode
boolean
scalar optional
Run in test-mode - Internal use
Default=0

Install.bat & Install.sh Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Install GBS (and possibly setup GBS).

Syntax:

Install.bat [ install_root ]
[ --q[+|-] ]
[ --setup[+|-] ]
[ --site=site ]
[ --log_root=log_root ]

Semantics:

<1> install_root
string
scalar optional
path: syntax check only
Install-Root. Remembered
Default=
--q[+|-] quiet_mode
boolean
scalar optional
Run in Quiet-Mode (No prompts)
Default=0
--setup[+|-] setup
boolean
scalar optional
Call gbssetup after install. Not if Multi-User. Remembered
Default=
--site=site site
string
scalar optional
word: Min. length = 3 Max. length = 20
Default Site. Remembered and passed to gbssetup
Default=
--log_root=log_root log_root
string
scalar optional
path: syntax check only
Default Log-Root. Passed to gbssetup. Not if Multi-User.
Default=

Note

This command resides in the $GBS_SCRIPTS_PATH/Install directory

More info:

Install

_gbssetup.bat & _gbssetup.sh Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Setup GBS (After Install).

Syntax:

gbssetup_
[ --q[+|-] ]
[ --site=site ]
[ --log_root=log_root ]

Semantics:

--q[+|-] quiet_mode
boolean
scalar optional
Run in Quiet-Mode (No prompts)
Default=0
--site=site site
string
scalar optional
word: Min. length = 3 Max. length = 20
Default Site
Default=
--log_root=log_root log_root
string
scalar optional
path: syntax check only
Default Log-Root
Default=

Note

This command resides in the $GBS_SCRIPTS_PATH directory

More info:

Setup

detab (Non-GBS) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Replace TABs by spaces in files

Syntax:

detab [ files ]
[ -t[+|-] ]
[ -r[+|-] ]
[ -f=wild_files,... ]
[ -m=modulo ]
[ -s[+|-] ]

Semantics:

<*> files
string
scalar optional
Files to process or directory in case of -r
Default=
-t[+|-] test
boolean
scalar optional
test only - do not make modifications
Default=0
-r[+|-] recurse
boolean
scalar optional
recurse directory looking for -f= files
Default=0
-f=wild_files wild_files
string
array optional
wild-card files to process
Default=
-m=modulo modulo
integer
scalar optional
The TAB size the file was created with
Default=8
-s[+|-] smart_tabs
boolean
scalar optional
retab leading whitespace (modulo 8)
Default=0

fixeol (Non-GBS) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Fix EndOfLine characters of specified file(s) according to the invoking Operating System

Syntax:

fixeol files...

Semantics:

files string
array mandatory
Files to be fixed
Default=

filerep (Non-GBS) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Rename/Delete files

Syntax:

filerep <command_or_commandsfile> [ files ]
[ -t[+|-] ]
[ -r=recurse,... ]
[ -R=recurse_group,... ]

Semantics:

<1> command_or_commandsfile
string
scalar mandatory
Rename/Delete Command or @filespec of file containing Rename/Delete Commands
Rename/Delete Command: <delim><find><delim><replace><delim>[g|r][i]
- g = glob rename (default)
- r = Perl regular expression rename
- i = ignore case of search string
Empty <replace> deletes the file
commandsfile:  Empty lines and lines beginning with '#' are ignored
Default=
<*> files
string
scalar optional
(wild-)Files and.or Dirs to process
Default=
-t[+|-] test
boolean
scalar optional
test only - do not make modifications
Default=0
-r=recurse recurse
string
array optional
recurse direcory using comma-separated wild files
Default=
-R=recurse_group recurse_group
string
array optional
recurse direcory using comma-separated file-groups. e.g.: perl
Default=

Note:

Directory/Files starting with '.' are skipped

Note:

No check-out is performed on file(s)

pgrep (Non-GBS) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Find strings in files, using Perl regular expressions

Syntax:

pgrep <rexexp_or_file> [ files ]
[ -w[+|-] ]
[ -b[+|-] ]
[ -e[+|-] ]
[ -a[+|-] ]
[ -i[+|-] ]
[ -n[+|-] ]
[ -B=before_context ]
[ -A=after_context ]
[ -C=context ]
[ -r=recurse,... ]
[ -R=recurse_group,... ]
[ -s[+|-] ]

Semantics:

<1> rexexp_or_file
string
scalar mandatory
Perl regexp or @filespec of file containing Perl regexps
regexp-file:  Empty lines and lines beginning with '#' are ignored
Default=
<*> files
string
scalar optional
(wild-)Files and.or Dirs to process
Default=
-w[+|-] word
boolean
scalar optional
find word (no regexp)
Default=0
-b[+|-] begin
boolean
scalar optional
find begin word (no regexp)
Default=0
-e[+|-] end
boolean
scalar optional
find end word (no regexp)
Default=0
-a[+|-] any
boolean
scalar optional
find any (no regexp)
Default=0
-i[+|-] ignore_case
boolean
scalar optional
ignore case of search string
Default=0
-n[+|-] print_linenr
boolean
scalar optional
print linenumber
Default=1
-B=before_context before_context
integer
scalar optional
print <num> lines of leading context
Default=0
-A=after_context after_context
integer
scalar optional
print <num> lines of trailing context
Default=0
-C=context context
integer
scalar optional
print <num> lines of output context (-A=<num> and -B=<num>)
Default=0
-r=recurse recurse
string
array optional
recurse direcory using comma-separated wild files
Default=
-R=recurse_group recurse_group
string
array optional
recurse direcory using comma-separated file-groups. e.g.: perl
Default=
-s[+|-] supress_msg
boolean
scalar optional
Suppress non-error messages
Default=

Note:

Directory/Files starting with '.' are skipped

proto (Non-GBS) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Generate function-prototypes for C, C++ and Perl

Syntax:

proto [ files ]

Semantics:

<*> files
string
scalar optional
Files to be parsed
Default=*.c,*.cpp,*.oc,*.pl,*.pm

win2unix (Non-GBS - Linux Only) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

The win2unix command will convert Files from Windows-format to Unix-format

Syntax:

win2unix files...

Semantics:

files string
array mandatory
Files to convert
Default=

wordrep (Non-GBS) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Replace words/strings in files

Syntax:

wordrep <command_or_commandsfile> [ files ]
[ -t[+|-] ]
[ -r=recurse,... ]
[ -R=recurse_group,... ]

Semantics:

<1> command_or_commandsfile
string
scalar mandatory
Replace Command or @filespec of file containing Replace Commands
Replace Command: <delim><find><delim><replace><delim>[w|b|e|a|r][i]
- w = find word, b = find begin word, e = find end word
- a = find any,  r = find Perl regular expression
- i = ignore case of search string
- \s in replace string is converted to single space
commandsfile:  Empty lines and lines beginning with '#' are ignored
Default=1
<*> files
string
scalar optional
(wild-)Files and.or Dirs to process
Default=
-t[+|-] test
boolean
scalar optional
test only - do not make modifications
Default=0
-r=recurse recurse
string
array optional
recurse direcory using comma-separated wild files
Default=
-R=recurse_group recurse_group
string
array optional
recurse direcory using comma-separated file-groups. e.g.: perl
Default=

Note:

Directory/Files starting with '.' are skipped

Note:

No check-out is performed on file(s)

wsudo (Non-GBS - Windows Only) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

Run a command in Elevated Mode ('as Adminstrator')
Somewhat like Linux: sudo
But the command is run in a separate window

Syntax:

wsudo [ command_sequence ]

Semantics:

command_sequence string
array opional
Command(s) to be executed
If omitted a CMD Window will be started in Elevated Mode.

grep tail touch and more... (Non-GBS - Windows Only) Bottom Doc. Button Top Document Button Down Section Button Blank Down Chapter Button Up Chapter Button

Purpose:

How any programmer can survive without 'grep' is beyond my understanding...
Gratefully copied from Karl M. Syring 's UnxUtils (now OpenSource) and (partly) delivered as part of GBS.
Please read the Standard Disclaimer.
Some extra help can be found UnxUtils Home Page. Note that not all commands are distributed with GBS. Feel free to request additions.

The executables are located in '%GBS_SCRIPTS_PATH%/win2utils'.
You may consider adding the win32utils directory in your PATH.
In switch.gbs.bat add:
IF "%WIN32UTILS_IN_PATH%"=="" THEN PATH=%GBS_SCRIPTS_PATH%\win2util;%PATH%
SET WIN32UTILS_IN_PATH=1

Syntax and Help:

On Command Line the following commands are predefined (DosKey):
 grep --help
egrep --help
agrep --help
 tail --help
touch --help
which --help

In GBS 'make' or via '%GBS_SCRIPTS_PATH%/win2utils' you can use:
   cp --help
 find --help
 gawk --help
 make --help
   rm --help
  sed --help
  tar --help


all_commands.html