s1kd-sns
Description
khzae.net
khzae.net
All
Add --xml-catalog parser option.
General
The s1kd-sns tool can be used to automatically organize data modules in a CSDB in to a directory hierarchy based on a specified SNS structure. It may also be used to simply print an indented text version of an SNS structure.
Usage
s1kd-sns [-D <dir>] [-d <dir>] [-cmnpsh?] [<BREX> ...]
Options
-c, --copy
Copy files in to the SNS subfolders instead of linking them.
-D, --srcdir <dir>
The flat directory containing the data modules to organize. By default, the current directory is used.
-d, --outdir <dir>
The root directory of the new SNS structure. By default, the tool will use the name "SNS" in the current directory.
-h, -?, --help
Show usage message.
-m, --move
Move files in to the SNS subfolders instead of linking them.
-n, --only-code
Use only the SNS codes when naming directories. By default, each directory will be named in the form of "snsCode - snsTitle".
-p, --print
Print the SNS structure only.
-s, --symlink
Use symbolic links to organize the SNS instead of the default hard links.
--version
Show version information.
<BREX>
Read the SNS structure from the specified BREX data module. If none is specified, the tool will read from stdin.
In addition, the following options allow configuration of the XML parser:
--dtdloadLoad the external DTD.--hugeRemove any internal arbitrary parser limits.--netAllow network access to load external DTD and entities.--noentResolve entities.--parser-errorsEmit errors from parser.--parser-warningsEmit warnings from parser.--xincludeDo XInclude processing.--xml-catalog <file>Use an XML catalog when resolving entities. Multiple catalogs may be loaded by specifying this option multiple times.
Example
$ s1kd-sns DMC-S1000D-A-08-02-0100-00A-022A-D_EN-US.XML
$ tree SNS
SNS
|_ 00 - Product, General
|_ 0 - Product, General
|_ 1 - Product, General maintenance
|_ 2 - Product, Safety
|
...
|_ 04 - Worthiness (fit for purpose) limitations
|_ 0 - General
|_ 1 - Fatigue index calculations
|_ 2 - Operating spectrums
|_ 05 - Scheduled/unscheduled maintenance
|_ 0 - General
|_ 1 - Time limits
|_ 2 - Scheduled maintenance check lists
...
|_ 18 - Vibration and noise analysis and attenuation