Sugar Network/Recipe Specification: Difference between revisions

Line 302: Line 302:
* ''LANG'' current language while building per language implementation
* ''LANG'' current language while building per language implementation


== Predefined environment variables ==
Also while ''0sugar build'' command invocation, ''0sugar'' exports environment variables that could be used in ''exec'' options for example to implement conditional build.


Predefined environment variables could be used in ''exec'' options for example to implement conditional build.
* ''ZSUGAR_<argument-in-upper-case>'' map ''0sugar'' long command line arguments
 
* ''ZSUGAR_<section-in-upper-case>'' if ''0sugar'' was called to process only particular sections, these variables will be exported per included section
* ''ZSUGAR_<long-0sugar-argument>'' map ''0sugar'' command line arguments
* ''ZSUGAR_NO_<section-in-upper-case>'' the same but for sections that were explicitly excluded