SPEC_MERGE

Use this to merge two specification files, i.e. a local and a master specification file.

Refer to the following example for more information:

Local specification file (original)

Local specification file (merged)
*Highlighted text denotes sections that have been merged.

Master specification file

begin$def bbb
begin$tab aaa
'entry1'
'entry2'
end$tab aaa

number = 23.0
string = 'text string'
end$def bbb

begin$def vals
fff = 'a string'
end$def vals
end$file

BEGIN$DEF bbb
BEGIN$TAB aaa
'entry1'
'entry2'
END$TAB aaa
number=23.000000000000
string='text string'
END$DEF bbb
*
BEGIN$DEF vals
fff='new stuff'
jjj=33.330000000000
BEGIN$TAB ooo
11.666000000000
99.990000000000
END$TAB ooo
END$DEF vals
*
BEGIN$DEF section
BEGIN$TAB option
'item'
'another'
END$TAB option
END$DEF section
END$FILE

begin$def section
begin$tab option
'item'
'another'
end$tab option
end$def section

begin$def vals
fff = 'new stuff'
jjj = 33.33

begin$tab ooo
11.666
99.99
end$tab ooo
end$def vals
end$file


Usage:

spec_merge <local spec file> <master spec file>

<> indicates a mandatory switch.
[ ] indicates an optional switch


Where:

Option

Description

<local spec file>

Refers to the local specification file that will be updated/overwritten.

<master spec file>

Refers to the master specification file that will overwrite any redundant information contained in the local specification file.