nitrile env
¶
This command outputs some useful environment variable settings.
Usage¶
The output can be fed to eval
in bash to set the settings in the current
process:
eval `nitrile env`
In PowerShell, you can use Invoke-Expression
:
nitrile env | Invoke-Expression
Use case¶
A typical use case is to do some simple tests using clm
. For example, you can
create a temporary temp.icl
and without adding a
build
step compile and run it with:
eval `nitrile env`
clm $CLMFLAGS temp -o temp
./temp
Defined variables¶
The following variables are defined:
CLEAN_HOME
: points to a central directory innitrile-packages
with abin
andexe
subdirectory containing links or copies to the binaries of all dependencies.CLEANLIB
: identical to$CLEAN_HOME/exe
, used byclm
.CLMFLAGS
: the flags nitrile would use to invokeclm
.PATH
: identical to the previousPATH
, but with$CLEAN_HOME/bin
prepended (if it was not already at the start ofPATH
).