File: System-Module-Installation.html

package info (click to toggle)
geomview 1.9.4-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,772 kB
  • ctags: 11,826
  • sloc: ansic: 90,886; sh: 9,802; cpp: 1,215; makefile: 1,064; objc: 263; yacc: 149; tcl: 76; lex: 70
file content (66 lines) | stat: -rw-r--r-- 3,256 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html lang="en">
<head>
<title>System Module Installation - Geomview Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Geomview Manual">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Module-Installation.html#Module-Installation" title="Module Installation">
<link rel="prev" href="Private-Module-Installation.html#Private-Module-Installation" title="Private Module Installation">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<p>
<a name="System-Module-Installation"></a>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Private-Module-Installation.html#Private-Module-Installation">Private Module Installation</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Module-Installation.html#Module-Installation">Module Installation</a>
<hr>
</div>

<h4 class="subsection">6.7.2 System Module Installation</h4>

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

     <dl>
<dt>1.<dd>Create a file called <samp><span class="file">.geomview-</span><var>module</var></samp> where
<samp><var>module</var></samp> is the name of the module.  This file should contain
a single line which is an <code>emodule-define</code> command for that module:
     <pre class="example">          (emodule-define "New Module" "newmodule")
     </pre>
     <p>The first argument, <code>"New Module"</code> above, is the string that will
appear in the <em>Modules</em> browser.  The second string,
<code>"newmodule"</code> 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.

     <br><dt>2.<dd>Put a copy of the <samp><span class="file">.geomview-</span><var>module</var></samp> and the module
executable itself in Geomview's <samp><span class="file">modules/&lt;CPU&gt;</span></samp> directory,
where <samp><span class="file">&lt;CPU&gt;</span></samp> is your system type.

   </dl>

   <p>After these steps, the new module should appear, in alphabetical
position, in the <em>Modules</em> browser of Geomview's <em>Main</em>
panel next time Geomview is run.  The reason this works is that when
Geomview is invoked it processes all the <samp><span class="file">.geomview-*</span></samp> files in its
<samp><span class="file">modules</span></samp> 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.

<!-- **************************************************************** -->
</body></html>