/*% cat %
These are the main TIPS modules.
With the exception of dbed.c each should be compiled with
cc -c -O and the resulting object module should be moved into ../olib.
Each contains a `com' line to do what is required.
For those of you without a Yacc that will compile the *.y
files, the y.tab.c files are included.

The various modules component lists are as follows:

MAIN		Components

dbed		dbed.o

dumptpl		dumptpl.o ../mlib/lib

list		list.o tagchk.o loaddb.o gram.o read.o retrieve.o files.o
		put.o puttag.o olist.o ../mlib/lib

mktpl		mktpl.o template.o loaddb.o tagchk.o ../mlib/lib

profinfo	profinfo.o loaddb.o tagchk.o ../mlib/lib

query		query.o tagchk.o loaddb.o read.o retrieve.o files.o put.o
		puttag.o olist.o gram.o ../mlib/lib

tpl		tpl.o interp.o tagchk.o loaddb.o gram.o read.o retrieve.o
		files.o put.o puttag.o ../mlib/lib

makeprof	newdb.o tagchk.o ../mlib/lib
		user's profile.o

INSTALLATION

The following order is recommended:

Create ../mlib/lib

Compile newdb.o and tagchk.o
	com newdb.c tagchk.c

Test makeprof with profile.c in ../testdb/Cont.a
Makeprof is a shell command file in ../bin.
Make sure pathnames are fixed (see ../bin/Read_me).
Compare Makeprof generated .[ef]profile files
with [ef]profile in that directory.

Next tackle profinfo.

Query and List should be next, followed by Mktpl.
To test Query and List, ../testdb/Cont.a should be dearchived.
File ../tplman.t can be used to test mktpl.

	mktpl tplman.t

Next -- dumptpl (use tplman.t's t.out to test).

Finally -- tpl.
Again `t.out' and `tplman.t' can be used for testing.

Only thing left is Dbed.
Problem is that Qed is required, so backup (../../qed) and go for it.
There are some path names in dbed.qed that must be set.

DIRECTORIES:

FILES:

Makefile       Pwb Make script to make TIPs modules
dbed.c         Qed program startup
dumptpl.c      Main for dumptpl
files.c        file list generation
gram.tab.c     Yacc'd version of gram.y
gram.y         parser for query expressions
interp.c       Tpl interpreter module
list.c         Main for List
loaddb.c       module to load profiles
mktpl.c        Main for Mktpl
newdb.c        module linked with user's profile.c in Makeprof
olist.c        module used by query and list to set tag lists
profinfo.c     Main for Profinfo
put.c          Composition, pagination, and putchar
puttag.c       Output a tag
query.c        Main for query
read.c         Read an entry
retrieve.c     Retrieve selected components of entry
tagchk.c       Check a input tag name
template.tab.c Yacc'd template.y
template.y     Parser for Tpl language
tpl.c          Main for Tpl

PATHNAME repl change lines:

NO PATHNAMES other than `/tmp' file below and include files which are all
	../hd/*.h
BUT ../hd/files.h has got plenty.  See ../hd/Read_me

tpl.c:000040:		sprintf(t_out, "/tmp/tout%05d", getpid());
