prevnext   » WIT: Wiimms ISO Tools » Guides » Environment Variables

Environment Variables

Contents

1.   Introduction

The user can define environment variables as additional way to submit options to the tool. All options are accepted and used as default.

2.   Environment Variables

2.1   WIT_LANG

With 'WIT_LANG' the user can specifiy a default language for wit and wwt titles. If 'WIT_LANG' is empty 'LC_CTYPE' will be scanned. The option »--lang lang« overides this default setting.

Example: WIT_LANG="de"

2.2   WIT_OPT

The tool wit scanns the environment variable 'WIT_OPT' like a command line and before the real command line is scanned. Therefor 'WIT_OPT' will be converted to a parameter list and each SPACE or other control is a word separator. Quoting is not possible. Only options and their parameters will recognized. If such option is not compatible with the command it is silently ignored.

Example: WIT_OPT="--overwrite -vv -T0"

2.3   WWT_OPT

The tool wwt scanns the environment variable 'WWT_OPT' like a command line and before the real command line is scanned. Therefor 'WWT_OPT' will be converted to a parameter list and each SPACE or other control is a word separator. Quoting is not possible. Only options and their parameters will recognized. If such option is not compatible with the command it is silently ignored.

Example: WWT_OPT="--force --overwrite -vv -T0"

2.4   WWT_WBFS

If neither the option --part nor --auto nor --all is set then the environment variable 'WWT_WBFS' is searched. It contains a semicolon separated list of filenames. If one ore more of this files is a valid WBFS partition it is silently added to the partition list and the option --all is set.

Example: WWT_WBFS="a.wbfs;/dev/sdc1;/dev/sdc2"

2.5   WIT_MEM

The tools try to detect the RAM size of the computer for some decicions like the autoamtic compression mode. The user can define a good memory usage value by using the option --mem or setting the environment variable WIT_MEM.

Any floating point number followed by a unit (usally m for MB) is expected. If no unit is entered, MiB is assumed.

Example: WIT_MEM=1.5g