System Module Installation - Geomview Manual
Description: Geomview Manual

Previous: Private Module Installation, Up: Module Installation

#### 6.7.2 System Module Installation

To install a module so that it is available to all Geomview users do the following

1.
  Create a file called `.geomview-module` where `module` is the name of the module. This file should contain a single line which is an `emodule-define` command for that module:

                (emodule-define "New Module" "newmodule")

  The first argument, `"New Module"` above, is the string that will appear in the Modules browser. The second string, `"newmodule"` above, is the Bourne shell command for invoking the module. It may include arguments, and you may assume that the module is on the $path searched by the shell.

2.
  Put a copy of the `.geomview-module` and the module executable itself in Geomview's `modules/<CPU>` directory, where `<CPU>` is your system type.

After these steps, the new module should appear, in alphabetical position, in the Modules browser of Geomview's Main panel next time Geomview is run. The reason this works is that when Geomview is invoked it processes all the `.geomview-*` files in its `modules` directory. It also remembers the pathname of this directory and prepends that path to the $path of the shell in which it invokes such a module.