diff --git a/msi.html b/msi.html index 639553968..7fd58c6a5 100644 --- a/msi.html +++ b/msi.html @@ -10,25 +10,25 @@
-Version 1.4, June 2004
+
-Marty Kraimer (Advanced Photon Source, Argonne National Laboratory)Version 1.5, 10th November, 2008
msi is a general purpose macro substitution/include tool. It accepts as -input an ascii template file. It looks for lines containing two reserved -command names: include and substitute. It also looks for and performs -substitutions on macros of the form $(var) and ${var}. It uses macLib, an EPICS -Base library created by William Lupton, to perform the substitutions.
+msi is a general purpose macro substitution/include tool. It accepts as input +an ascii template file. It looks for lines containing two reserved command +names: include and substitute. It also looks for and performs +substitutions on macros of the form $(var) and ${var}. It uses the macLib +routines from EPICS Base to perform the substitutions, so it also accepts the +default value and value definition syntax that macLib implements.
msi also allows substitutions to be specified via a separate substitution file. This substitution file allows the same format as the substitution files -accepted by dbLoadTemplate or subtool.
+accepted by the EPICS IOC's dbLoadTemplate command.msi -V -ofile -Idir -Msub -Ssubfile template+
msi -V -ooutfile -Idir -Msubs -Ssubfile template
All parameters are optional. The -o, -I, -M, and -S switches may be separated from their associated value string by spaces if desired. Output will @@ -52,14 +52,14 @@ be written to stdout unless the -o option is given.
include commands. For example:-specifies that all named files should be searched for in the following locations in the order given:msi -I "/home/phoebus/MRK/examples:." -I".." template+msi -I /home/mrk/examples:. -I.. template
The template file is read and processed one line at a time, where the maximum length of a line before and/or after macro expansion is 1023 characters -— longer input or output lines will cause msi to fail. Within the context +— longer input or output lines will cause msi to fail. Within the context of a single line, macro expansion does not occur when the variable instance appears inside a single-quoted string, or where the dollar sign $ is preceded by a back-slash character \, but as with the standard Unix shells, variables inside double quoted strings are expanded properly.
-However neither back-slash characters nor quotes or either variety are +
However neither back-slash characters nor quotes of either variety are removed when generating the output file, so depending on what is being output the single quote behaviour may not be useful and may even be a hinderance. It cannot be disabled in the current version of msi.