From: brewster@Think.COM (Brewster Kahle)
Subject: WAIS-discussion digest #55: How to get the ball rolling
Organization: Comp.Center (RUS) U of Stuttgart, FRG
Date: Sun, 16 Aug 1992 15:20:07 GMT


       Forum On Wide Area Information Servers and Electronic Publishing
                              Brewster Kahle
                 

Contents:
     WAIS getting more commercial (Brewster Kahle)
     Introductory WAIS paper available (peter@julian.uwo.ca)
     Patches for a clean compile (Hal Peterson)
     MIPS/CDC 4680/EP/IX Modifications for getting 8-b5 running ("Peter Marshall CCS UWO")

[It has been almost 2 months since the last wais-discussion issue.  I
apologize.  It has been a busy summer for we WAISites.  Please send in
compelling Electronic Publishing articles to
wais-discussion@think.com.

-brewster

new sources (283 total):

 USGS_Earth_Science_Data_Directory.src
 Aesop-Fables.src
 movie-reviews.src
 Arabidopsis-BioSci.src
 AAtDB.src
 merit-internet-rfc.src
 netbib.src
 Global_Change_Data_Directory.src
 NOAA_National_Environmental_Referral_Service.src
 DOE_Climate_Data.src
 domain-organizations.src
 domain-contacts.src
 whois.src
 bib-dmi-ens-fr.src
 UCSC_directory_of_servers.src
 ra-zenon-inria-fr.src
 ra-mime-zenon-inria-fr.src
 cscwbib.src
 cissites.src
 internet-standards.src
 merit-nsfnet-linkletter.src
 merit-archive-mac.src
 ANU-SSDA-Catalogues.src
 tmc-technical-reports.src
 world91a.src
 ANU-Pacific-Linguistics.src
]

----------------------------------------------------------------------

From: Brewster Kahle <brewster@Think.COM>
Subject: WAIS getting more commercial
Date: Sun, 16 Aug 92 07:58:54 PDT

MCC, of Austin TX, is offering to hook up companies to the internet and
offering value added a couple services to make it more usable.  The project
is called EInet and the projects they are putting up are WAIS and X.500
while using a commercial internet provider for the transport.

They have integrated kerberos into WAIS (it really works) and have been
working on the X.500 stuff.

I talked at a conference at a meeting of theirs were many corporate people
were actively interested.

Go MCC for helping bring WAIS and the Internet into the corporate world!

-brewster


------------------------------


From: peter@julian.uwo.ca
Subject: Introductory WAIS paper available
Date: Sun, 28 Jun 92 21:40:48 -0400


(This notice has previously appeared in comp.infosystems.wais.  It has
been suggested that it would be a good idea to post it here too.  Note
that I have fixed up a couple of minor errors in the text since the
previous posting. Peter Marshall)

I presented a paper on WAIS at the Canadian Net'92 in St John's NFLD
at the beginning of June.  (I'm not a world expert on WAIS -- more like an
interested user, but I guess when Brewster couldn't make it, my offer
of a paper was welcome!)

A compressed postscript version of the paper is available via anonyous
FTP to julian.uwo.ca as doc/wais-paper.ps.Z.  Be warned, the
PostScript version contains a number of bitmap dumps and so takes a
while to print.  A text-only version is also there (no pictures) as
doc/wais-paper.text.  It is much smaller!

Here's the abstract:

Anonymous FTP isn't a tool that most users find easy or natural to
use.  Finding out where to retreive data and then using Anonyomous FTP
to actually do the retreival is just too difficult.  Other mechanisms
need to be developed to make accessible the information available on
the Internet.  One approach to this problem is the Wide Area
Information Server or WAIS.  WAIS is a developing network application
that allows queries to be made of multi-media (but usually text-based)
databases using a standard query and retrieval protocol (Z39.50).  One
of its great benefits is that it provides a common user interface to a
wide range of information sources that can be resident anywhere on the
Internet.  WAIS provides good mechanisms to flexibly handle diverse
and unstructured data.  It also encourages the data to reside in a
single place, ``close'' to its maintainer, thus allowing near-realtime
updates.

Currently, over two hundred and twenty-five databases have been made
available by Internet sites from around the world.  Databases are
diverse, instantly searchable and retrievable. 

WAIS is an early example of the kind of network applications that will
help make the Internet a useful resource for non-computing-oriented
users.  Its easy to use ``natural language'' access makes it much
more ``user-friendly'' than many network applications.

WAIS also is a powerful tool to allow information providers to enter the
world of electronic publishing.  We all generate mountains of text
within our organizations.  WAIS provides some excellent facilities to
make that text available in a reasonable and useful way.

The University of Western Ontario has implemented a number of WAIS
databases both for internal and external consumption.  Through the
experiences at UWO with WAIS, this paper explores the concepts of
network-searchable databases and the WAIS implementation in
particular.  It introduces the WAIS system, touches on related
projects like ``gopher'' and other text retrieval systems, presents a
picture of the current state of the WAIS community and discusses
current problems and limitations in the software.  The paper concludes
with an examination of the future for information servers.


------------------------------

From: hrp@pecan.cray.com (Hal Peterson)
Subject: Patches for a clean compile
Date: Mon, 20 Jul 92 15:50:34 CDT

The following patch to wais-8-b5 gets it to compile cleanly and
without further modification on SunOS 4.1.1.  The problem that I've
fixed is the unconditional building of directory handling code in the
lib subdirectory of the distribution; SunOS already has most of that
stuff and so it just gets in the way.  With this patch installed, you
only get those components of lib that you ask for by defining symbols
in CFLAGS in the top-level Makefile.  For instance, SunOS needs
freedir, so I added -DFREEDIR on the top level and watched it fly.

--
Hal Peterson				Internet:  hrp@cray.com
Cray Research, Inc.			Telephone:  +1 612 683 5440

	Statistics:  the quantification of ignorance.


-----------------------------------------------------------------
*** 1.1	1991/07/17 16:37:56
--- alphasort.c	1992/07/20 18:57:54
***************
*** 10,15 ****
--- 10,16 ----
  static char RCS[] = "$Header: /home/pecan2/hrp/cray/uss/wais/src/wais-8-b5/lib/RCS/alphasort.c,v 1.1 1991/07/17 16:37:56 jonathan Exp hrp $";
  #endif	/* RCSID */
  
+ #ifdef ALPHASORT
  int
  alphasort(d1, d2)
      struct dirent **d1;
***************
*** 17,19 ****
--- 18,21 ----
  {
      return strcmp(d1[0]->d_name, d2[0]->d_name);
  }
+ #endif /* ALPHASORT */
*** 1.1	1992/07/20 18:56:28
--- freedir.c	1992/07/20 18:58:13
***************
*** 1,4 ****
! 
  /* free list malloc'd by scandir */
  void
  freedir(list)
--- 1,4 ----
! #ifdef FREEDIR
  /* free list malloc'd by scandir */
  void
  freedir(list)
***************
*** 11,13 ****
--- 11,14 ----
      }
      free((char *)list);
  }
+ #endif /* FREEDIR */
*** 1.1	1991/07/17 16:37:58
--- ftw.c	1992/07/20 18:58:34
***************
*** 19,24 ****
--- 19,25 ----
  extern char		*malloc();
  extern char		*strcpy();
  
+ #ifdef FTW
  int
  ftw(directory, funcptr, depth)
      char		 *directory;
***************
*** 103,105 ****
--- 104,107 ----
      closedir(dirp);
      return 0;
  }
+ #endif /* FTW */
*** 1.1	1991/07/17 16:38:01
--- scandir.c	1992/07/20 18:59:03
***************
*** 18,23 ****
--- 18,24 ----
  extern char		*realloc();
  extern char		*strcpy();
  
+ #ifdef SCANDIR
  int
  scandir(name, list, selector, sorter)
      char		  *name;
***************
*** 84,86 ****
--- 85,88 ----
  
      return i;
  }
+ #endif /* SCANDIR */

------------------------------

From: "Peter Marshall CCS UWO" <peter@julian.uwo.ca>
Subject: MIPS/CDC 4680/EP/IX Modifications for getting 8-b5 running
Date: Mon, 10 Aug 92 11:58:56 -0400


I've finally had some time to work on getting the b5 version of WAIS
up on our CDC EP/IX box.  Some of the changes that I sent in for 8-b3
didn't make it for b5, I guess.

I'll list them as notes and then include the diffs below:

Modified lib/pdftw.h to include some different files for mips (copied
from my b3 mods).

Edited ir/ir.c and ir/irretrvl.c to define S_ISDIR not only when on
NeXT but also for mips and fixed a typo in the macro definition.

Modified x/filereq.c to define S_ISDIR macro (Copied the code from
ir/ir.c) 

I couldn't get the X stuff to compile using xmake.sh.  cd x;xmkmf;make
worked fine if you use the sysv version of date in x/Imakefile.
(I don't like how the xmake.sh tries to install the programs itself without
asking!)

Copied in swais.l from our b3 distribution. Why didn't this make it
into b5?  Updated it based on preliminary work with swais.

Added a UWOCFLAGS variable to the Makefile to allow us to compile up
sun,mips,sgi,.. versions using make command line variations.  And
added a simple-minded install section to the Makefile.

Used the following make command:
	make "UWOCFLAGS=-Ddirent=direct -systype bsd43 -Wf,-XNp6000,-XNd4000"

Context diffs for these changes...

*** pdftw.h.orig	Sat Mar  7 22:36:29 1992
--- pdftw.h	Wed Jul 22 21:32:17 1992
***************
*** 44,49 ****
--- 44,57 ----
  #endif /* ndef NeXT */
  #endif
  
+ /* [uwo] required for Mips/Epix machines */
+ #if  defined(mips)
+ #define USE_SYS_DIR
+ #include <sys/types.h>
+ #include <disktab.h>
+ #include <sys/dir.h>
+ #endif /*mips*/
+ 
  #if  defined(ultrix)
  #define USE_SYS_DIR  
  #include <sys/dir.h>
*** ir.c.orig	Sun May 10 17:43:34 1992
--- ir.c	Wed Jul 22 22:30:35 1992
***************
*** 5,10 ****
--- 5,11 ----
  */
  
  /* Change log:
+  * [uwo] Added definition of S_ISDIR for mips too (and fixed the typo there)
   * $Log:	ir.c,v $
   * Revision 1.49  92/05/10  14:43:35  jonathan
   * Made a little safer on NULL docid's when parsing.
***************
*** 184,192 ****
  #define S_ISDIR(f_mode) (f_mode & IFDIR)
  #endif /* Mach */
  
! #if (defined(NeXT) && !(defined(S_ISDIR)))
! #define S_ISDIR(f_mode) ((fmode) & S_IFDIR)
! #endif
  
  /*----------------------------------------------------------------------*/
  /* Utility */
--- 185,193 ----
  #define S_ISDIR(f_mode) (f_mode & IFDIR)
  #endif /* Mach */
  
! #if ((defined(NeXT) || defined(mips)) && !(defined(S_ISDIR)))
! #define S_ISDIR(f_mode) ((f_mode) & S_IFDIR)
! #endif /* [uwo] NeXT or mips */
  
  /*----------------------------------------------------------------------*/
  /* Utility */
*** irhash.c.orig	Fri Mar 20 14:01:37 1992
--- irhash.c	Thu Aug  6 23:23:08 1992
***************
*** 331,338 ****
  			      wrd_entry->current_memory_ptr);
        wrd_entry->current_memory_ptr +=
  	write_bytes_to_memory(weight +
! 			       /* add 5 since for the first one */
! 			      (doc_id != wrd_entry->current_doc_id)?5:0,
  			      WEIGHT_SIZE,
  			      wrd_entry->current_memory_ptr);
        wrd_entry->current_doc_id = doc_id;
--- 331,338 ----
  			      wrd_entry->current_memory_ptr);
        wrd_entry->current_memory_ptr +=
  	write_bytes_to_memory(weight +
! 			       /* add 35 [uwo] since for the first one */
! 			      (doc_id != wrd_entry->current_doc_id)?35:0,
  			      WEIGHT_SIZE,
  			      wrd_entry->current_memory_ptr);
        wrd_entry->current_doc_id = doc_id;
*** irretrvl.c.orig	Sun May 10 17:43:57 1992
--- irretrvl.c	Wed Jul 22 22:31:09 1992
***************
*** 9,14 ****
--- 9,15 ----
  #endif
  
  /* Change log:
+  * [uwo] Added definition of S_ISDIR for mips too and fixed the typo there.
   * $Log:	irretrvl.c,v $
   * Revision 1.30  92/05/10  14:43:59  jonathan
   * 
***************
*** 90,98 ****
  #define S_ISDIR(f_mode) (f_mode & IFDIR)
  #endif /* Mach */
  
! #if (defined(NeXT) && !(defined(S_ISDIR)))
! #define S_ISDIR(f_mode) ((fmode) & S_IFDIR)
! #endif
  
  /*----------------------------------------------------------------------*/
  
--- 91,99 ----
  #define S_ISDIR(f_mode) (f_mode & IFDIR)
  #endif /* Mach */
  
! #if ((defined(NeXT) || defined(mips)) && !(defined(S_ISDIR)))
! #define S_ISDIR(f_mode) ((f_mode) & S_IFDIR)
! #endif /* [uwo] NeXT or mips */
  
  /*----------------------------------------------------------------------*/
  
*** filereq.c.orig	Thu Apr 30 15:21:33 1992
--- filereq.c	Wed Jul 22 23:17:26 1992
***************
*** 8,13 ****
--- 8,17 ----
     jonathan@Think.COM
   *
   * $Log:	filereq.c,v $
+  * [uwo] Peter Marshall
+  * [uwo] Added definition of S_ISDIR for Mach and NeXT and mips (copied 
+  *       from ir.c with [uwo] mods)
+  *
   * Revision 1.2  92/04/30  12:21:34  jonathan
   * Added "quit no save" button, and changed the meaning of cancel.
   * 
***************
*** 22,27 ****
--- 26,41 ----
  
  #define FILEREQ_C
  #include "xwais.h"
+ 
+ #ifdef Mach
+ #include <sys/inode.h>
+ #define S_ISDIR(f_mode) (f_mode & IFDIR)
+ #endif /* Mach */
+ 
+ #if ((defined(NeXT) || defined(mips)) && !(defined(S_ISDIR)))
+ #define S_ISDIR(f_mode) ((f_mode) & S_IFDIR)
+ #endif /* [uwo] NeXT or mips */
+ 
  
  static Boolean
  isdir(name)
*** Imakefile.orig	Fri Aug  7 23:26:04 1992
--- Imakefile	Fri Aug  7 23:27:18 1992
***************
*** 62,68 ****
  NormalProgramTarget($(XWAIS),$(XWAIS_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
  NormalProgramTarget($(XWAISQ),$(XWAISQ_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
  
! DATE=`date +%y%m%d.%T`
  
  install:: all
  	((test -f $(XAPPLOADDIR)/Xwais) && \
--- 62,68 ----
  NormalProgramTarget($(XWAIS),$(XWAIS_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
  NormalProgramTarget($(XWAISQ),$(XWAISQ_OBJS),$(UI_LIB),$(LOCAL_LIBRARIES),$(SYSLIBS))
  
! DATE=`/bin/date +%y%m%d.%T`
  
  install:: all
  	((test -f $(XAPPLOADDIR)/Xwais) && \
*** /dev/null	Sun Aug  9 22:55:06 1992
--- swais.l	Mon Aug  3 23:27:10 1992
***************
*** 0 ****
--- 1,126 ----
+ .TH SWAIS 1 "1992-08-03" "UWO"
+ .SH NAME
+ swais, vtswais \- a simple WAIS query front-end
+ .SH SYNOPSIS
+ .B swais
+ 
+ .B vtswais
+ .SH DESCRIPTION
+ 
+ .B swais
+ is a curses-based, simple screen user interface for making WAIS queries.
+ This Simple WAIS interface is an basic access tool designed for those
+ focused on data retrieval and not computer operation. It provides most of the
+ functionality of the more complicated interfaces but features a simple and
+ potentially more natural interface for non-bitmapped screens.  The
+ functionality supported includes 
+ source selection, keyword entry, and automatic document retrieval.
+ 
+ There is currently no provision for relevance feedback based questions
+ nor is there a mechanism for storing questions to be asked again.
+ Remember, this is a simple interface!  
+ 
+ This software is fairly new and experimental.  You should expect a few
+ bugs.
+ 
+ vtswais is a special version of swais that forces your terminal type
+ to be a VT100 variant that works around a bug or two in swais.  Use it
+ on Mips-based machines whenever you are using a VT100
+ compatible screen.  Use it on all machines when  your terminal type is
+ set to xterm as it fixes a problem where the last page of a document
+ is cleared before it can be viewed.  You might want to try 
+ .B vtwais
+ if you encounter some other strangeness in the
+ .B swais
+ program.
+ 
+ When
+ .B swais
+ is first started, the "Source Selection" screen is displayed.  The
+ database source files displayed here are a combination of those in the system
+ source area and those that you have copied into your own
+ $HOME/wais-sources directory.  You must create this directory before
+ trying to save any database sources.
+ 
+ Select a database source (or source for short) by pressing the up and
+ down arrow keys to move the reverse-video bar (if available on your
+ terminal) over the source that you want and then pressing the
+ space-bar.  The selected source is marked with a star.  You can select
+ one or more sources for a search.  A control-V, control-D or K will
+ move you down a page of sources, <esc>v, control-U or J will move you
+ up a page.  The slash /<string> command can be used to search forward
+ for the next line with a given string in the sources display.
+ 
+ Type a "w" to move the cursor to the keyword list to be used in the
+ search.  Enter the keywords.  Use control-U to erase them and start
+ again, <rubout> to delete one character at a time.
+ 
+ Once you have typed your keyword list, type a <return> to do the
+ search of your selected sources using the keywords typed.
+ 
+ When your search is complete and there are some matches, a "Search
+ Results" screen is displayed.  It lists information headlines about
+ each matched entry.  The score column gives you a 1-1000 rating for
+ how "good" the match was.
+ 
+ To retrieve an entry, move the bar over it using the cursor keys (or
+ the slash search command or by number) and press the space bar.  The
+ document is retrieved and displayed using your PAGER.  To retrieve and
+ save or otherwise process a document use the vertical bar "|" command
+ to pipe the document to a program.  For example the command "cat
+ >/tmp/article" would save the retrieved document in the file
+ /tmp/article and the command "lpr" would send the item to your default
+ printer.  You can also use the "m" command to email a document.
+ 
+ When retrieving from a directory of source files (like the
+ directory-of-servers source) you can use the the "u" command to add it
+ to your list of personal sources instead of the "<space>" to view it.
+ Once the source has been added, it will appear in the "Source
+ Selection" screen.  (The source file will be copied into the
+ $HOME/wais-sources directory (which must exist!))
+ 
+ To return to select another source or to try different search terms,
+ use the "s"  (source) or "w" (word) commands. 
+ 
+ To exit from the program, type a "q" at the source selection or
+ results screen.  
+ 
+ .SH FILES
+ .ta 2.5i
+ 
+ .br
+ .Pbr
+ $(HOME)/wais-sources	location for personal sources.
+ .br
+ .Pbr
+ /usr/ccs/share/lib/wais-sources
+ .br
+ 	location for system-wide sources.
+ 
+ .SH BUGS
+ 
+ \fBswais\fR on the mips machine has trouble with VT100 terminals: use
+ vtswais to fix some of these.
+ 
+ While \fBswais\fR works on non-VT100 screens, it isn't very good
+ looking unless the screen has some sort of high-lighting.  The program
+ uses highlighting to indicate the current selection and you will
+ require a fast eye to see which selection or document is the current
+ one if your screen doesn't implement reverse-video or some other form
+ of marking.
+ 
+ If you try to save a source without having a $HOME/wais-sources
+ directory, the program bombs.  Create this directory first.
+ 
+ The "o" or options command causes the program to crash.  Don't use it!
+ 
+ The <esc>v command (for moving up a page) doesn't work on MIPS machines.  Use
+ one of the alternative commands: J or control-U.
+ .SH SEE ALSO
+ .PP
+ xwaisq(1), xwais(1), waissearch(1), waisindex(1), waisserver(1)
+ .SH AUTHOR
+ Program by John Curran (jcurran@nnsc.nsf.net).
+ 
+ Second pass at a manual by Peter Marshall CCS, The University of
+ Western Ontario: <peter.marshall@uwo.ca>.
*** Makefile.orig	Thu May  7 18:54:10 1992
--- Makefile	Sat Aug  8 00:42:35 1992
***************
*** 47,55 ****
  # for other UNIX-like OS's set this to this directory.
  #TOP:sh = pwd
  # or fill in the blank for other OS's
! #TOP = ?
! comment-me:
! 	@echo You must set "\$$(TOP)" to point to the wais src directory
  
  SUPDIR = $(TOP)/ir
  
--- 47,55 ----
  # for other UNIX-like OS's set this to this directory.
  #TOP:sh = pwd
  # or fill in the blank for other OS's
! TOP = /usr/src/usr.local/network/$(RELEASE)
! #comment-me:
! #	@echo You must set "\$$(TOP)" to point to the wais src directory
  
  SUPDIR = $(TOP)/ir
  
***************
*** 61,67 ****
  # for relevance feedaback in the search engine, add -DRELEVANCE_FEEDBACK
  # USG for Unix Dirent in lib
  # for SGIs running IRIX 4.0.1, add -cckr
! CFLAGS = -g -I$(SUPDIR) -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG
  
  MAKE = make -k 
  
--- 61,71 ----
  # for relevance feedaback in the search engine, add -DRELEVANCE_FEEDBACK
  # USG for Unix Dirent in lib
  # for SGIs running IRIX 4.0.1, add -cckr
! # [uwo] UWOCFLAGS expected to be set from the Make command to handle
! # [uwo] various architectures.  Default to distribution value... works on 
! # [uwo] suns.
! UWOCFLAGS= -DUSG
! CFLAGS = -g -I$(SUPDIR) -DSECURE_SERVER -DRELEVANCE_FEEDBACK $(UWOCFLAGS)
  
  MAKE = make -k 
  
***************
*** 81,98 ****
  	cd ir; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP) 
  
  ui::
! 	cd ui; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP)
  
  # ULTRIX doesn't have an env command, so this doesn't work.
  # try going to the x directory and just doing a make -k
  # you may have to edit the CFLAGS in the Makefile yourself.
  
  x::
! 	cd x; (env TOP=$(TOP) CC=$(CC) "CFLAGS=$(CFLAGS)" "MAKE=$(MAKE)" ./makex.sh)
  
  bin::
  	cd bin; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP)
- 
  doc::
  	cd doc; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP)
  
--- 85,104 ----
  	cd ir; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP) 
  
  ui::
! 	cd ui; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS) -DCOMMON_SOURCE_DIR=\\\"/usr/ccs/share/lib/wais-sources\\\"" TOP=$(TOP)
  
  # ULTRIX doesn't have an env command, so this doesn't work.
  # try going to the x directory and just doing a make -k
  # you may have to edit the CFLAGS in the Makefile yourself.
+ # [uwo] just let xmkmf do its stuff and don't try to impose...
  
  x::
! 	cd x; xmkmf; make
! #original:
! #(env TOP=$(TOP) CC=$(CC) "CFLAGS=$(CFLAGS)" "MAKE=$(MAKE)" ./makex.sh)
  
  bin::
  	cd bin; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP)
  doc::
  	cd doc; $(MAKE) CC=$(CC) "CFLAGS=$(CFLAGS)" TOP=$(TOP)
  
***************
*** 129,131 ****
--- 135,201 ----
  	cd bin;  $@
  	cd doc;  $@
  	cd x; $@
+ 
+ # [uwo] Installation directories (followed by installation targets)
+ 
+ BIN = /usr/ccs/bin
+ OLD = /usr/ccs/old
+ EBIN = /usr/ccs
+ SBIN = /usr/ccs/share/bin
+ XDIR = /usr/X11/bin
+ XDIROLD = /usr/X11/old
+ SLIB = /usr/ccs/share/lib
+ ELISP = /usr/ccs/lib/emacs/local
+ MANDIR = /usr/ccs/share/man/manl
+ DOCDIR = /usr/local/lib/wais-data/wais
+ APPDIR = /usr/ccs/share/X11/lib/app-defaults
+ SRCDIR = /usr/ccs/share/lib/wais-sources
+ ELC= emacs -batch -f batch-byte-compile
+ 
+ install:	xinstall ir ui bin doc
+ 	install -s -c -m 775 \
+ 		bin/waisindex bin/waisq bin/waisserver bin/swais \
+ 		bin/waissearch \
+ 		$(BIN)
+ 	cd ui; 	sed -e 's+/proj/wais/wais+$(EBIN)+' \
+ 		    -e 's+"wais-sources/+"$(SLIB)/wais-sources/+' \
+ 			 <wais.el.raw >wais.el; $(ELC) ui/wais.el
+ 	install -m 664  ui/wais.elc $(ELISP)
+ 	install -c -m 775  ui/vtswais $(SBIN)
+ 	cd doc/manl; install -c -m 664 *.l $(MANDIR)
+ 	-ln -s $(MANDIR)/swais.l $(MANDIR)/vtswais.l
+ 	# Index the wais-docs and install them
+ 	-mkdir $(DOCDIR)
+ 	-mkdir $(SRCDIR)
+ 	cd doc; install -c -m 664 *.txt $(DOCDIR)
+ 	-rm $(SRCDIR)/wais-docs.src
+ 	cd $(DOCDIR); waisindex -l 1 -nopos -mem 20 -d wais-docs -t text *.txt
+ 
+ xinstall:	x
+ 	cd x; make install
+ 	cd x; sed -e 's+/proj/wais/wais/wais-sources+$(SLIB)/wais-sources+' \
+ 		-e 's+/proj/wais/wais/x/+$(SLIB)/+'  <Xwais.raw >Xwais
+ # We install this from Xlook (move it there by hand)
+ #	install -c -m 664 x/Xwais $(APPDIR)
+ 	install -c -m 664 x/XwaisHELP x/XwaisqHELP $(SLIB)
+ 	-mkdir $(SLIB)/wais-sources
+ 	install -c -m 664 wais-sources/*.src $(SLIB)/wais-sources
+ 
+ # Save the old version of WAIS so that is isn't hard to back out
+ save-old:
+ 	-cp $(XDIR)/xwaisq $(XDIR)/xwais $(XDIROLD)
+ 	-cp $(SLIB)/XwaisHELP $(SLIB)/XwaisqHELP $(OLD)
+ 	-cp $(BIN)/waisindex $(BIN)/waisq $(BIN)/waisserver $(BIN)/swais \
+ 	    $(BIN)/waissearch $(OLD)
+ 	-cp $(ELISP)/wais.elc $(OLD)
+ 	-cp $(SBIN)/vtswais $(OLD)
+ 	-cp $(MANDIR)/*wais*.l $(OLD)
+ 
+ restore-old:
+ 	-mv $(XDIROLD)/xwaisq $(XDIROLD)/xwais $(XDIR)
+ 	-mv $(OLD)/XwaisHELP $(OLD)/XwaisqHELP $(SLIB)
+ 	-mv $(OLD)/waisindex $(OLD)/waisq $(OLD)/waisserver $(OLD)/swais \
+ 	    $(OLD)/waissearch $(BIN)
+ 	-mv $(OLD)/wais.elc $(ELISP)
+ 	-mv $(OLD)/vtswais $(SBIN)
+ 	-mv $(OLD)/*wais*.l $(MANDIR)



------------------------------

End of WAIS-discussion Digest 55
************************

-------