mirror of
https://github.com/ksherlock/mpw.git
synced 2024-06-10 00:29:54 +00:00
Created Environment (markdown)
parent
eed575db53
commit
9f5e6fd536
30
Environment.md
Normal file
30
Environment.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
The `$MPW/Environment.text` file contains environment variables used by some MPW programs. Particularly, header file locations are defined here.
|
||||
|
||||
The file format is:
|
||||
|
||||
# comment
|
||||
name = value
|
||||
name += value
|
||||
name ?= value
|
||||
|
||||
Name may contains alphanumerics and underscores.
|
||||
|
||||
* `=` assigns the value, overwriting any previous value.
|
||||
* `+=` appends the value to any previous value.
|
||||
* `?=` assigns the value if and only if the variable was not already assigned.
|
||||
|
||||
## Variable Expansion
|
||||
|
||||
Variables are expanded within the value. Recognized forms are:
|
||||
|
||||
* `$name`
|
||||
* `${name}`
|
||||
* `{name}`
|
||||
|
||||
|
||||
## Command line
|
||||
|
||||
Variables can also be defined as part of the mpw command. eg:
|
||||
mpw -DMPWVersion=3.5 SC ...
|
||||
|
||||
These variables are processed after internal variables are set (`$Command`) but before the `Environment.text` file is loaded.
|
Loading…
Reference in New Issue
Block a user