1 Unload installation materials. Normally installation materials are received on a variety of media (i.e. diskette or tape) in tar format.
cd install_dir
tar xvf tar_filename
distr/, src/, prj/, inc/, fminit/, and docs/.
cd prj
2 Determine type of installation you are going to use.
3 Tailor Make file. There are several items in the make file that may need to be changed.
F_DIR=/usr/frame4
F_DIR = frame_dir
frame_dir is the directory where Frame is installed on your system.
L_DIR = $(F_DIR)/fdk/lib/sunxm.os.sparc
L_DIR = lib_location
lib_location is the location of the fdk libraries on your system.
INCL = -I$(F_DIR)/fdk/include -I../inc
INCL = incl_location -I../inc
incl_location is the location of the fdk include files on your system.
LD-FLAGS = -L$(L_DIR) -lfapi -lfde -ll
CC=gcc
LEX=flex
4 Build product by entering the command:
make
prj/ directory called tabinsert.fa.5 Decide where you are going to install production version of API and related files. These are commonly used locations which are recommended by FrameMaker:
$FMHOME/bin.
$FMHOME/fminit/usenglish/APIArea.
$FMHOME/fminit/usenglish/APIArea/resources.
tabinsert.ini.
6 Copy appropriate files to final installation locations.
tabinsert.fa to appropriate executable directory.
cp tabinsert.fa $FMHOME/bin
tabinsert.ini to API resources directory.
cp ../distr/tabinsert.ini $FMHOME/fminit/usenglish/APIArea/resources
7
Modify API client file with an appropriate text editor. If you keep the API client file in the Frame home directory, this would be the file: $FMHOME/fminit/usenglish/APIArea/apiclients. Insert the following lines at the end of the file.
<APIclient
<Name Table_Inserter>
<Directory client_dir>
<CommandLine executable_dir/tabinsert.fa>
<Products Maker>
<RPCVersion 1>
client_dir with the location of tabinsert.ini, such as $FMHOME/fminit/usenglish/APIArea/resources and you replace executable_dir with the location of the executable files, such as $FMHOME/bin. 8
Change the description for Marker Type 24 to Table Pointer. This is done by editing the file $FMHOME/fminit/resources/maker. Change the line
Maker*marker . 24: Type 24
Maker*marker . 24: Table Caption
9 Verify that installation has been successful.
install_dir/distr/DATAPAGE.TEMPLATE as a template.
install_dir/distr/test2.caps, and click OK.
test2.caps.
install_dir/distr/chvqga.rdelay. The resulting table should be:
test2.caps.
chvqga.rdelay.
chvqga.rdelay.
tabinsert.ini and your document templates as necessary to suit your needs. This is described in detail in Chapter 3. ``Preparing Information for Table API''.
Contents of DISTR directory