> ln -s /somewhere/Eos ~/.
For example: /bin/sh or bash, you write into '.profile' or `.bashrc',
> setenv EOS_HOME ~/Eos
> setenv EOS_HOST hpux
> setenv EOS_PATH $EOS_HOME/bin:$EOS_HOME/sbin
> setenv DISPLAY2_HOME ~/Eos/bin/wish
> export EOS_HOME=~/Eos
> export EOS_HOST=hpux
> export EOS_PATH=$EOS_HOME/bin:$EOS_HOME/sbin
> export DISPLAY2_HOME=~/Eos/bin/wish
For example, if you are going to make a new tool, which name is
`mrcImageNewTool', you should execute `maketool' as,
Here, we assumed that you are making a tool which handles mrc
formatted data. Let's look if the new directory has made. Execute,
$ maketool mrcImage mrcImageNewTool new
$ ls $EOS_HOME/src/Tools/mrcImage/mrcImageNewTool/
# OptionControlFile
# FileFormat
"-i","-i[nput]","InputDataFile","Essential","1","1","In","inFile","NULL"
"-o","-o[utput]","OutputDataFile","Essential","1","1","Out","outFile","NULL"
"-sx","-sx","x of Kernel Size","Optional","1","1","sx","Integer","25"
"-sy","-sy","y of Kernel Size","Optional","1","1","sy","Integer","25"
"-sz","-sz","z of Kernel Size","Optional","1","1","sz","Integer","1"
"-c","-c[onfig]","ConfigurationFile","Optional","1","1","configFile","inFile","NULL"
A Line begins with # is a comment. The first record of a line is
the option name. For example, you specify the input file name by
this option name as, `mrcImageCVE -i <input file name>'. The
seventh record of a line is the variable name. Maketool will
create the option information struct including that named
variable. And the eighth record specifies the variable type. The
option value for `-sx' will take `Integer'. And the last record
tells option handler the option default value.
After you wrote `OptionControlFile', run `maketool' to update the
tool environment. For example,
The option struct code will be written in the headerfile. And also
it updates the option handling code for you. So you can absorbed
in the real coding problem.
$ maketool mrcImage mrcImageNewTool update
When you code a source `lmrcImageNewTool.c', you must edit the headerfile `../inc/mrcImage.h' yourself. It is not modified automatically.
The data handling object is now complete. So you want to make up the tool. Change directory to `$EOS_HOME/src/Tools/mrcImage/mrcImageNewTool/src' and run make. If you wrote correctly, there will be your tool. Run and test it.
If your tool runs correctly and you think it is good enough for public use, run `make install'. Then your tool will be installed automatically under the Eos binary directory.
$ Display2 -i test.mrc