BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Sun, 25 Sep 1983 11:04:53 +0000 (03:04 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Sun, 25 Sep 1983 11:04:53 +0000 (03:04 -0800)
Work on file usr/src/new/new/bib/macs/common
Work on file usr/src/new/new/bib/src/invert.c
Work on file usr/src/new/new/mh/cmds/rescue.c
Work on file usr/src/new/new/rcs/src/rcs/rcsedit.c
Work on file usr/src/new/new/spms/bin/pclean
Work on file usr/src/new/new/spms/bin/pmake
Work on file usr/src/new/new/spms/bin/pdepend
Work on file usr/src/new/new/spms/src/bin/chproject/Makefile
Work on file usr/src/new/new/spms/src/bin/mkmf/Makefile
Work on file usr/src/new/new/spms/src/bin/mkproject/Makefile
Work on file usr/src/new/new/spms/src/bin/pcp/Makefile
Work on file usr/src/new/new/spms/src/bin/pd/Makefile
Work on file usr/src/new/new/spms/src/bin/pdiff/Makefile
Work on file usr/src/new/new/spms/src/bin/pexec/Makefile
Work on file usr/src/new/new/spms/src/bin/pfind/Makefile
Work on file usr/src/new/new/spms/src/bin/pgrep/Makefile
Work on file usr/src/new/new/spms/src/bin/phelp/Makefile
Work on file usr/src/new/new/spms/src/bin/plog/Makefile
Work on file usr/src/new/new/spms/src/bin/pman/Makefile
Work on file usr/src/new/new/spms/src/bin/pmkdir/Makefile
Work on file usr/src/new/new/spms/src/bin/pmv/Makefile
Work on file usr/src/new/new/spms/src/bin/ppd/Makefile
Work on file usr/src/new/new/spms/src/bin/prmdir/Makefile
Work on file usr/src/new/new/spms/src/bin/ptest/Makefile
Work on file usr/src/new/new/spms/src/bin/pwp/Makefile
Work on file usr/src/new/new/spms/src/bin/rmproject/Makefile
Work on file usr/src/new/new/spms/src/lib/libhash/src/Makefile
Work on file usr/src/new/new/spms/src/lib/libpdb/src/Makefile
Work on file usr/src/new/new/spms/src/lib/libslist/src/Makefile
Work on file usr/src/new/new/spms/src/lib/libspms/src/Makefile
Work on file usr/src/new/new/spms/src/lib/libtree/src/Makefile
Work on file usr/src/new/new/bib/doc/styletop
Work on file usr/src/new/new/bib/doc/testrefs
Work on file usr/src/new/new/bib/doc/teststyle
Work on file usr/src/new/new/bib/doc/tstyles
Work on file usr/src/new/new/bib/macs/Makefile
Work on file usr/src/new/new/bib/macs/afterpunct
Work on file usr/src/new/new/bib/macs/beforepunct
Work on file usr/src/new/new/bib/macs/srcs
Work on file usr/src/new/new/bib/macs/doit

Synthesized-from: CSRG/cd1/4.2

40 files changed:
usr/src/new/new/bib/doc/styletop [new file with mode: 0644]
usr/src/new/new/bib/doc/testrefs [new file with mode: 0644]
usr/src/new/new/bib/doc/teststyle [new file with mode: 0644]
usr/src/new/new/bib/doc/tstyles [new file with mode: 0644]
usr/src/new/new/bib/macs/Makefile [new file with mode: 0644]
usr/src/new/new/bib/macs/afterpunct [new file with mode: 0644]
usr/src/new/new/bib/macs/beforepunct [new file with mode: 0644]
usr/src/new/new/bib/macs/common [new file with mode: 0644]
usr/src/new/new/bib/macs/doit [new file with mode: 0644]
usr/src/new/new/bib/macs/srcs [new file with mode: 0644]
usr/src/new/new/bib/src/invert.c [new file with mode: 0644]
usr/src/new/new/mh/cmds/rescue.c [new file with mode: 0644]
usr/src/new/new/rcs/src/rcs/rcsedit.c [new file with mode: 0644]
usr/src/new/new/spms/bin/pclean [new file with mode: 0755]
usr/src/new/new/spms/bin/pdepend [new file with mode: 0755]
usr/src/new/new/spms/bin/pmake [new file with mode: 0755]
usr/src/new/new/spms/src/bin/chproject/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/mkmf/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/mkproject/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pcp/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pd/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pdiff/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pexec/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pfind/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pgrep/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/phelp/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/plog/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pman/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pmkdir/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pmv/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/ppd/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/prmdir/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/ptest/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/pwp/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/bin/rmproject/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/lib/libhash/src/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/lib/libpdb/src/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/lib/libslist/src/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/lib/libspms/src/Makefile [new file with mode: 0644]
usr/src/new/new/spms/src/lib/libtree/src/Makefile [new file with mode: 0644]

diff --git a/usr/src/new/new/bib/doc/styletop b/usr/src/new/new/bib/doc/styletop
new file mode 100644 (file)
index 0000000..d2a4a03
--- /dev/null
@@ -0,0 +1,12 @@
+.TL
+Bib reference format style examples
+.AU
+Timothy A. Budd
+.AI
+The University of Arizona
+Department of Computer Science
+Tucson, Arizona
+85721
+.PP
+The following illustrates the output of citations and references in each
+of the several styles distributed with the \fIBIB\fP system.
diff --git a/usr/src/new/new/bib/doc/testrefs b/usr/src/new/new/bib/doc/testrefs
new file mode 100644 (file)
index 0000000..6697711
--- /dev/null
@@ -0,0 +1,164 @@
+%A Timothy A. Budd
+%T Referemce File Formats
+%I UATR 82-1
+%D 1982
+
+%A Brian W. Kernighan
+%A Lorinda L. Cherry
+%T A System for Typesetting Mathematics
+%J CACM
+%V 18
+%N 3
+%D MAR 1978
+%P 151-156
+%K eqn
+
+%A Software\ Research\ Associates
+%T Software Engineering Automated Tools Index
+%I S\&RA
+%C San Francisco, CA
+%D 1982
+
+%A M. E. Lesk
+%T Tbl - A Program to Format Tables
+%J Unix Programmers Manual, Vol 2A
+
+%A M. E. Lesk
+%T Some Applicates of Inverted Indexes on the UNIX System
+%R Bell Laboratories Computing Scienc Technical Report 69
+%D JUN 1978
+%K refer
+
+%A Alfred V. Aho
+%A Jeffrey D. Ullman
+%T Principles of Compiler Design
+%I Addison-Wesley
+%D 1977
+%K dragon
+
+%A R. E. Griswold
+%A J. F. Poage
+%A I. P. Polonsky
+%T The SNOBOL4 Programming Language
+%I PRHALL
+%D second edition 1971
+
+%A R. Colt Hoare
+%T A Tour through the Island of Elba
+%I (no listed publisher)
+%C London
+%D 1814
+
+%A Dennie Van\ Tassel
+%T Program Style, Design, Efficiency,
+%I PRHALL
+%D 1978
+%W tab
+%K testing debugging
+
+%A M. A. Harrison
+%A W. L. Ruzzo
+%A J. D. Ullman
+%T Protection in Operating Systems
+%J CACM
+%V 19
+%N 8
+%P 461-471
+%D AUG 1976
+%K hru
+
+%A M. Bishop
+%A L. Snyder
+%T The Transfer of Information and Authority
+in a Protection System
+%J Proceedings of the 7th SOSP
+%P 45-54
+%D 1979
+
+%A John B. Goodenough
+%T A Survey of Program Testing Issues
+%B Research Directions in Software Technology
+%E Peter Wegner
+%I MIT Press
+%P 316-340
+%D 1979
+
+%A R. J. Lipton
+%A L. Snyder
+%T On Synchronization and Security
+%E R. A. DeMillo
+%E D. P. Dobkin
+%E A. K. Jones
+%E R. J. Lipton
+%B Foundations of Secure Computation
+%P 367-388
+%I ACPRESS
+%D 1978
+
+%A C.A.R. Hoare
+%T Procedures and parameters: An axiomatic approach
+%B Symposium on semantics of algorithmic languages
+%E E. Engeler
+%P 102-116
+%S Lecture Notes in Mathematics
+%V 188
+%I Springer-Verlag
+%C Berlin-Heidelberg-New York
+%D 1971
+
+%A A. Girard
+%A J-C Rault
+%T A Programming Technique for Software Reliability
+%B Symposium on Software Reliability
+%I IEEE
+%C Montvale, New Jersey
+%D 1977
+%O (Cited in Glib [32])
+
+%E R. A. DeMillo
+%E D. P. Dobkin
+%E A. K. Jones
+%E R. J. Lipton
+%T Foundations of Secure Computation
+%I ACPRESS
+%D 1978
+%K book
+
+%A T. A. Budd
+%T An APL Complier
+%R UATR 81-17
+%D 1981
+
+%A Douglas Baldwin
+%A Frederick Sayward
+%T Heuristics for Determining Equivalence of Program Mutations
+%R Technical Report Number 161
+%I Yale University
+%D 1979
+
+%A Martin Brooks
+%T Automatic Generation of Test Data for
+Recursive Programs Having Simple Errors
+%I PhD Thesis, Stanford University
+%D 1980
+
+%A A. Snyder
+%T A Portable Compiler for the Language C
+%R Master's Thesis
+%I M.I.T.
+%D 1974
+
+%F BHS--
+%A Timothy A. Budd
+%A Robert Hess
+%A Frederick G. Sayward
+%T User's Guide for the EXPER Mutation Analysis system
+%O (Yale university, memo)
+
+%E I. M. Editor
+%T Book with no author
+%D 1066
+
+%I SDIT
+%T Bullitun of the South Dakota Institute of Technology
+%D 1946
diff --git a/usr/src/new/new/bib/doc/teststyle b/usr/src/new/new/bib/doc/teststyle
new file mode 100644 (file)
index 0000000..7a7a094
--- /dev/null
@@ -0,0 +1,16 @@
+.SH
+Example Test Page
+.PP
+This example shows a citation for a book,[.griswold poage polonsky.]
+a journal article,[.hru.] and a conference paper.[.bishop snyder.]
+.PP
+Multiple citations [.goodenough, hoare engeler.] look like this.
+.PP
+A run of citations [.girard, dobkin demillo book, baldwin, brooks,
+snyder portable.] can
+sometimes be hyphenated.
+.PP
+The alternative citation
+style {.girard, dobkin demillo book, baldwin, brooks,
+snyder portable.} does not have braces.
+.[]
diff --git a/usr/src/new/new/bib/doc/tstyles b/usr/src/new/new/bib/doc/tstyles
new file mode 100644 (file)
index 0000000..8495f3a
--- /dev/null
@@ -0,0 +1,10 @@
+.ps 10
+.vs 12p
+.nr PS 10
+.nr VS 12p
+.SH
+STYLE
+.PP
+see ,[.kernighan cherry.] also .[.griswold snobol, goodenough wegner.]
+Other references include [.bishop snyder, demillo lipton book, budd apl.].
+.[]
diff --git a/usr/src/new/new/bib/macs/Makefile b/usr/src/new/new/bib/macs/Makefile
new file mode 100644 (file)
index 0000000..474ce67
--- /dev/null
@@ -0,0 +1,36 @@
+DEST         = $(DESTDIR)/usr/lib/bmac
+
+MAKEFILE      = Makefile
+
+PRINT        = vtroff
+
+SRCS         = bib.astro \
+               bib.foot \
+               bib.hnf \
+               bib.list \
+               bib.opena \
+               bib.openn \
+               bib.spe \
+               bib.spe2 \
+               bib.stda \
+               bib.stdn \
+               bib.stdsn \
+               bib.supn \
+               bibinc.fullnames \
+               bibinc.publishers \
+               bibinc.shortnames \
+               bibmac.me \
+               bmac.open \
+               bmac.std \
+               common
+
+all:;
+
+clean:;
+
+depend:;       @mkmf -f $(MAKEFILE)
+
+install:;      @echo Installing $(SRCS) in $(DEST)
+               @for i in $(SRCS); do cp $$i $(DEST)/$$i; done
+
+update:;
diff --git a/usr/src/new/new/bib/macs/afterpunct b/usr/src/new/new/bib/macs/afterpunct
new file mode 100644 (file)
index 0000000..27af04e
--- /dev/null
@@ -0,0 +1,18 @@
+.ds [. " \&
+.ds .] .
+.ds [, " \&
+.ds ,] ,
+.ds [? " \&
+.ds ?] ?
+.ds [: " \&
+.ds :] :
+.ds [; " \&
+.ds ;] ;
+.ds [! " \&
+.ds !] !
+.ds [" " \&
+.ds "] \&"
+.ds [' " \&
+.ds '] '
+.ds [< " \&
+.ds >]
diff --git a/usr/src/new/new/bib/macs/beforepunct b/usr/src/new/new/bib/macs/beforepunct
new file mode 100644 (file)
index 0000000..635610a
--- /dev/null
@@ -0,0 +1,18 @@
+.ds [. .
+.ds .] " \&
+.ds [, ,
+.ds ,] " \&
+.ds [? ?
+.ds ?] " \&
+.ds [: :
+.ds :] " \&
+.ds [; ;
+.ds ;] " \&
+.ds [! !
+.ds !] " \&
+.ds [" \&"
+.ds "] " \&
+.ds [' '
+.ds '] " \&
+.ds [< " \&
+.ds >]
diff --git a/usr/src/new/new/bib/macs/common b/usr/src/new/new/bib/macs/common
new file mode 100644 (file)
index 0000000..10f1775
--- /dev/null
@@ -0,0 +1,32 @@
+and
+for
+the
+an
+be
+of
+in
+at
+on
+by
+to
+no
+as
+tr
+with
+some
+about
+jan
+feb
+mar
+apr
+may
+june
+jun
+july
+jul
+aug
+sep
+sept
+oct
+nov
+dec
diff --git a/usr/src/new/new/bib/macs/doit b/usr/src/new/new/bib/macs/doit
new file mode 100644 (file)
index 0000000..4ad844a
--- /dev/null
@@ -0,0 +1,2 @@
+sccs get bib.astro bib.foot bib.hnf bib.list bib.opena bib.openn bib.spe bib.spe2 bib.stda bib.stdn \
+bib.stdsn bib.supn bibinc.fullnames bibinc.publishers bibinc.shortnames bibmac.me bmac.std common
diff --git a/usr/src/new/new/bib/macs/srcs b/usr/src/new/new/bib/macs/srcs
new file mode 100644 (file)
index 0000000..d823f93
--- /dev/null
@@ -0,0 +1,19 @@
+bib.astro
+bib.foot
+bib.hnf
+bib.list
+bib.opena
+bib.openn
+bib.spe
+bib.spe2
+bib.stda
+bib.stdn
+bib.stdsn
+bib.supn
+bibinc.fullnames
+bibinc.publishers
+bibinc.shortnames
+bibmac.me
+bmac.open
+bmac.std
+common
diff --git a/usr/src/new/new/bib/src/invert.c b/usr/src/new/new/bib/src/invert.c
new file mode 100644 (file)
index 0000000..5b8ae21
--- /dev/null
@@ -0,0 +1,185 @@
+#ifndef lint
+static char sccsid[] = "%W     %G";
+#endif not lint
+#
+/*  input:  records of lines, separated by blank lines
+    output: key:file1 start/length ... start/length:file2 start/length ...
+*/
+
+# include "stdio.h"
+# include "streams.h"
+# include "bib.h"
+# define isnull(x)  (*(x) == NULL)
+# define makelow(c) ('A'<=(c) && (c)<='Z' ? (c)-'A'+'a' : c)
+
+int     max_kcnt = 100;     /*  max number of keys                      */
+int     max_klen =   6;     /*  max length of keys                      */
+char    *ignore =           /*  string of line starts to ignore         */
+            "CNOPVX";
+char    *common =           /*  name of file of common words            */
+            COMFILE;
+char    *INDEX=             /*  name of output file                     */
+            INDXFILE;
+
+char    *tmpfile =          /*  name of temporary file                  */
+            INVTEMPFILE;
+
+int    silent = 0;         /*  0 => statistics printed                 */
+                           /*  1 => no statisitics printed             */
+
+char *sort_it =
+        "sort -u +0 -1 +1 -2 +2n -3 +3n %s -o %s";
+char sortcmd[maxstr];
+
+int     argc;
+char    **argv;
+
+main(argcount,arglist)
+int argcount;
+char **arglist;
+{   char            *filename;
+    FILE            *input, *output;
+    long int        start,length;
+    char            word[maxstr];
+    int             kcnt;
+    char            tag_line[maxstr];
+
+    long int       records = 0;  /*  number of records read           */
+    long int       keys    = 0;  /*  number of keys read (occurences) */
+    long int       distinct;     /*  number of distinct keys          */
+    long int       shorten();
+
+    argc= argcount-1;
+    argv= arglist+1;
+    mktemp(tmpfile);
+    output= fopen(tmpfile,"w");
+
+    for ( flags() ; argc>0 ; argc--, argv++ ,flags() )
+    {   /* open input file              */
+            filename=   *argv;
+            input=      fopen(filename,"r");
+            if (input==NULL)
+            {   fprintf(stderr, "invert: error in open of %s\n", filename);
+                continue;
+            }
+            start=      0L;
+            length=     0L;
+
+        for(;;) /* each record  */
+        {   /* find start of next record (exit if none)     */
+                start= nextrecord(input,start+length);
+                if (start==EOF)   break;
+            records++;
+           kcnt= 0;
+            length= recsize(input,start);
+            sprintf(tag_line, " %s %D %D\n", filename, start, length);
+
+            while (ftell(input) < start+length && kcnt < max_kcnt)
+            {   getword(input,word,ignore);
+                makekey(word,max_klen,common);
+                if (!isnull(word))
+                {   fputs(word,output); fputs(tag_line,output);
+                    kcnt++; keys++;
+                }
+            }
+        }
+        fclose(input);
+    }
+    fclose(output);
+
+    sprintf(sortcmd, sort_it, tmpfile, tmpfile);
+    system(sortcmd);
+
+    distinct = shorten(tmpfile,INDEX);
+    if( silent == 0 )
+       fprintf(stderr,
+           "%D documents   %D distinct keys  %D key occurrences\n",
+           records, distinct, keys);
+}
+
+
+
+/*  Flag    Meaning                             Default
+    -ki     Keys per record                     100
+    -li     max Length of keys                  6
+    -%str   ignore lines that begin with %x     CNOPVX
+            where x is in str
+            str is a seq of chars
+    -cfile  file contains Common words          /usr/src/local/bib/common
+            do not use common words as keys
+    -pfile  name of output file                 INDEX
+    -s     do not print statistics             statistics printed
+*/
+
+# define    operand     (strlen(*argv+2)==0 ? (argv++,argc--,*argv) : *argv+2)
+
+flags()
+{   for (; argc>0 && *argv[0]=='-';  argc--,argv++)
+    {   switch ((*argv)[1])
+        {   case 'k':   max_kcnt= atoi(operand);
+                        break;
+            case 'l':   max_klen= atoi(operand);
+                        break;
+            case 'c':   common=  operand;
+                        break;
+            case '%':   ignore=  *argv+2;
+                        break;
+            case 'p':   INDEX=  operand;
+                        break;
+           case 's':   silent= 1;
+                       break;
+            default:    fprintf(stderr, "unknown flag '%s'\n", *argv);
+        }
+    }
+}
+
+
+/*  shorten(inf,outf): file "inf" consists of lines of the form:
+        key file start length
+    sorted by key and file.  replace lines with the same key
+    with one line of the form:
+        key:file1 start/length ... start/length:file2 start/length ...
+    rename as file "outf"
+    returns number of lines in output
+*/
+long shorten(inf,outf)
+char *inf, *outf;
+{   FILE *in, *out;
+    char line[maxstr];
+    char key[maxstr],  newkey[maxstr],
+         file[maxstr], newfile[maxstr];
+    long int start, length;
+    long int lines = 0;
+
+    in=  fopen(inf, "r");
+    out= fopen(outf, "w");
+    if (in==NULL || out==NULL)
+    {   fprintf(stderr, "invert: error in opening file for compression\n");
+        return(0);
+    }
+
+    getline(in,line);
+    sscanf(line,"%s%s83/09/23D", key, file, &start, &length);
+    fprintf(out, "%s :%s %D/%D", key, file, start, length);
+    for ( getline(in, line) ; !feof(in);  getline(in, line))
+    {   sscanf(line,"%s%s83/09/23D", newkey, newfile, &start, &length);
+        if (strcmp(key,newkey)!=0)
+        {   strcpy(key, newkey);
+            strcpy(file, newfile);
+            fprintf(out, "\n%s :%s %D/%D",  key, file, start, length);
+           lines++;
+        }
+        else if (strcmp(file,newfile)!=0)
+        {   strcpy(file,newfile);
+            fprintf(out, ":%s %D/%D", file, start, length);
+        }
+        else
+            fprintf(out, " %D/%D", start, length);
+    }
+    fprintf(out, "\n");
+    lines++;
+
+    fclose(in); fclose(out);
+    unlink(inf);
+    return (lines);
+}
diff --git a/usr/src/new/new/mh/cmds/rescue.c b/usr/src/new/new/mh/cmds/rescue.c
new file mode 100644 (file)
index 0000000..57b8b1f
--- /dev/null
@@ -0,0 +1,415 @@
+/*
+ * Read up the messages in the named files and rehabilitate them into
+ * UNIX+ style messages on standard output.
+ *
+ * +Unix is a trademark of Bell Laboratories.
+ * The optional -d flag tests the arpa net to unix date format
+ * transformer by reading lines from standard input, modifying them
+ * to unix format, and outputing them on standard output.
+ */
+
+#include <stdio.h>
+#include <ctype.h>
+#include <sys/time.h>
+
+char   *index(), *rindex(), *reform();
+long   emitl();
+int    errs;
+int    dateerrs;
+int    dflag;
+int    lastblank;
+
+main(argc, argv)
+       char **argv;
+{
+       register char *cp, *fname;
+
+       if (argc < 2) {
+               fprintf(stderr, "Usage: rescue name ...\n");
+               _exit(1);
+       }
+       lastblank = 1;
+       while (--argc) {
+               fname = *++argv;
+               if (strcmp(fname, "-d") == 0) {
+                       dflag++;
+                       dtest();
+                       exit(0);
+               }
+               cp = rindex(fname, '/');
+               if (cp == 0)
+                       cp = fname;
+               else
+                       cp++;
+               if (strcmp(cp, "cur") == 0)
+                       continue;
+               if (strcmp(cp, "select") == 0)
+                       continue;
+               if (*cp == '#')
+                       continue;
+               while (*cp)
+                       if (!isdigit(*cp++)) {
+                               fprintf(stderr, "%s: not mh message file\n",
+                                   fname);
+                               goto blog;
+                       }
+               fix(fname);
+blog:          ;
+       }
+       if (dateerrs)
+               fprintf(stderr, "%d bad date(s) replaced by current date\n",
+                   dateerrs);
+       exit(errs);
+}
+
+/*
+ * Fix the named file by putting together a reasonable header
+ * and outputing the stuff onto standard output.
+ */
+fix(name)
+       char name[];
+{
+       register FILE *in;
+       char linebuf[BUFSIZ], from[BUFSIZ], date[BUFSIZ];
+       register int inhead;
+       register char *cp;
+       int i;
+
+       if ((in = fopen(name, "r")) == NULL) {
+               perror(name);
+               errs++;
+               return;
+       }
+       from[0] = date[0] = 0;
+       for (; from[0] == 0 || date[0] == 0;) {
+               if (fgets(linebuf, BUFSIZ, in) == NULL)
+                       goto noheader;
+               if (strlen(linebuf) == 1)
+                       goto noheader;
+               if (linebuf[0] == '-')
+                       goto noheader;
+               if (isfield(linebuf, "from")) {
+                       cp = index(linebuf, ':');
+                       if (cp == 0)
+                               goto noheader;
+                       cp++;
+                       while (*cp && isspace(*cp))
+                               cp++;
+                       /*
+                       ** the below was: strcpy(from, cp);
+                       ** but this will not work, since
+                       ** headers can be like this:
+                       ** From: foo (foo bar)
+                       ** which /usr/ucb/Mail gags on... -layer
+                       */
+                       i = 0;
+                       while(*cp && !isspace(*cp))
+                               from[i++] = *cp++;
+                       from[i] = '\0';
+                       continue;
+               }
+               if (isfield(linebuf, "date")) {
+                       cp = index(linebuf, ':');
+                       if (cp == 0)
+                               goto noheader;
+                       cp++;
+                       while (*cp && isspace(*cp))
+                               cp++;
+                       strcpy(date, cp);
+                       continue;
+               }
+       }
+       /*
+        * Ready to print the from line
+        */
+       zap(from);
+       zap(date);
+       if (!lastblank)
+               printf("\n");
+       printf("From %s %s\n", from, reform(date));
+       lastblank = 0;
+       rewind(in);
+       inhead = 1;
+       while (fgets(linebuf, BUFSIZ, in) != NULL) {
+               if (inhead &&
+                   (isfield(linebuf, "from") || isfield(linebuf, "date")))
+                       continue;
+               if (strlen(linebuf) == 1)
+                       inhead = 0;
+               fputs(linebuf, stdout);
+               lastblank = 0;
+               if (linebuf[0] == '\n' && linebuf[1] == 0)
+                       lastblank = 1;
+       }
+       fclose(in);
+       return;
+noheader:
+       fprintf(stderr, "%s:  Missing, bad, or incomplete header\n", name);
+       errs++;
+       fclose(in);
+}
+
+/*
+ * Determine if the passed line is a header of the given field name
+ */
+isfield(buf, field)
+       char buf[];
+       char field[];
+{
+       register char *cp, *cp2;
+
+       cp = buf;
+       cp2 = field;
+       while (lower(*cp++) == lower(*cp2++))
+               ;
+       if (*--cp == ':' && *--cp2 == 0)
+               return(1);
+       return(0);
+}
+
+/*
+ * Lower case the given character
+ */
+lower(c)
+       register int c;
+{
+
+       if (isupper(c))
+               return(tolower(c));
+       return(c);
+}
+
+/*
+ * Remove trailing newline from str, if present.
+ */
+zap(str)
+       char str[];
+{
+       register char *cp;
+
+       cp = index(str, '\n');
+       if (cp != 0)
+               *cp = 0;
+}
+
+/*
+ * Reformat the given Arpa net style date
+ * back into a unix ctime(3) date.
+ * Unfortunately, there appears to be NO standard arpa net
+ * date format.
+ */
+
+char *month = "janfebmaraprmayjunjulaugsepoctnovdec";
+
+char *
+reform(date)
+       char date[];
+{
+       static char retdate[35];
+       char dbuf[BUFSIZ];
+       register char *cp, *cp2, *mptr;
+       struct tm d;
+       long x, then;
+
+       cp = date;
+       cp2 = dbuf;
+       while (*cp) {
+               if (*cp == '(') {
+                       while (*cp != ')' && *cp)
+                               cp++;
+                       if (*cp)
+                               cp++;
+                       goto more;
+               }
+               if (*cp == '\t') {
+                       *cp2++ = ' ';
+                       cp++;
+                       continue;
+               }
+               if (*cp == '-') {
+                       *cp2++ = ' ';
+                       cp++;
+                       continue;
+               }
+               if (isupper(*cp)) {
+                       *cp2++ = tolower(*cp++);
+                       continue;
+               }
+               *cp2++ = *cp++;
+more:          ;
+       }
+       *cp2 = 0;
+       /*
+        * Okie dokie.  Now pick off the date part and store
+        * it away.  Only possible formats here are:
+        *      mm/dd/yy
+        * and
+        *      dd monthname year
+        */
+       if (index(dbuf, '/')) {
+               d.tm_mon = atoi(dbuf) - 1;
+               cp = index(dbuf, '/') + 1;
+               d.tm_mday = atoi(cp);
+               if ((cp = index(cp, '/')) == 0)
+                       goto baddate;
+               cp++;
+               d.tm_year = atoi(cp);
+               if (d.tm_year > 1900)
+                       d.tm_year -= 1900;
+               cp = index(cp, ' ');
+               if (cp == 0)
+                       goto baddate;
+       }
+       else {
+               d.tm_mday = atoi(dbuf);
+               cp = index(dbuf, ' ');
+               if (cp == 0)
+                       goto baddate;
+               while (*cp && isspace(*cp))
+                       cp++;
+               if (*cp == 0)
+                       goto baddate;
+               for (mptr = month; *mptr; mptr += 3)
+                       if (strcmpn(mptr, cp, 3) == 0)
+                               break;
+               if (*mptr == 0)
+                       goto baddate;
+               d.tm_mon = (mptr - month)/3;
+               cp = index(cp, ' ');
+               if (cp == 0)
+                       goto baddate;
+               while (*cp && isspace(*cp))
+                       cp++;
+               if (*cp == 0)
+                       goto baddate;
+               d.tm_year = atoi(cp);
+               if (d.tm_year > 1900)
+                       d.tm_year -= 1900;
+               cp = index(cp, ' ');
+               if (cp == 0)
+                       goto baddate;
+       }
+       /*
+        * Got the month part, now fix up the time.
+        * Possibilities are:
+        *      hh:mm
+        *      hh:mm [am|pm]
+        *      hhmm edt
+        *      hh:mm:ss edt
+        * Basically, we lose by ignoring time zone.
+        */
+       for (;;) {
+               while (*cp && isspace(*cp))
+                       cp++;
+               if (*cp == 0)
+                       goto baddate;
+               if (strcmpn(cp, "at ", 3) != 0)
+                       break;
+               cp += 3;
+       }
+       d.tm_sec = 0;
+       if (index(cp, ':')) {
+               d.tm_hour = atoi(cp);
+               cp = index(cp, ':') + 1;
+               d.tm_min = atoi(cp);
+               if (index(cp, ':')) {
+                       cp = index(cp, ':') + 1;
+                       d.tm_sec = atoi(cp);
+               }
+               while (*cp && !isspace(*cp))
+                       cp++;
+               while (*cp && isspace(*cp))
+                       cp++;
+               if (strcmpn(cp, "pm", 2) == 0 && d.tm_hour < 12)
+                       d.tm_hour += 12;
+       }
+       else {
+               x = atoi(cp);
+               d.tm_hour = x / 100;
+               d.tm_min = x % 100;
+       }
+       then = emitl(&d);
+       strcpy(retdate, ctime(&then));
+       zap(retdate);
+       return(retdate);
+
+baddate:
+       dateerrs++;
+       if (dflag)
+               strcpy(retdate, "************************");
+       else {
+               then = time(0);
+               strcpy(retdate, ctime(&then));
+               zap(retdate);
+       }
+       return(retdate);
+}
+
+/*
+ * Test the arpa net to UNIX date modifier.
+ * Reads lines from standard input, converting them
+ * to unix format, and displaying both on stdout.
+ */
+dtest()
+{
+       char buf[BUFSIZ];
+       register char *cp;
+
+       while (gets(buf)) {
+               cp = reform(buf);
+               printf("\"%s\"  \"%s\"\n", buf, cp);
+       }
+}
+
+/*
+ * Routine to convert a localtime(3) format date back into
+ * a system format date.
+ *
+ * Hats off to Bob Kridle for the insight that the way to do
+ * this is by binary search of the system date space.
+ */
+
+struct tm *localtime();
+
+long
+emitl(dp)
+       struct tm *dp;
+{
+       long conv;
+       register int i, bit;
+       struct tm dcopy;
+
+       dcopy = *dp;
+       dp = &dcopy;
+       conv = 0;
+       for (i = 31; i >= 0; i--) {
+               bit = 1 << i;
+               conv |= bit;
+               if (dcmp(localtime(&conv), dp) > 0)
+                       conv &= ~bit;
+       }
+       return(conv);
+}
+
+/*
+ * Compare two localtime dates, return result.
+ */
+
+#define DECIDE(a) \
+       if (dp->a > dp2->a) \
+               return(1); \
+       if (dp->a < dp2->a) \
+               return(-1)
+
+dcmp(dp, dp2)
+       register struct tm *dp, *dp2;
+{
+
+       DECIDE(tm_year);
+       DECIDE(tm_mon);
+       DECIDE(tm_mday);
+       DECIDE(tm_hour);
+       DECIDE(tm_min);
+       DECIDE(tm_sec);
+       return(0);
+}
diff --git a/usr/src/new/new/rcs/src/rcs/rcsedit.c b/usr/src/new/new/rcs/src/rcs/rcsedit.c
new file mode 100644 (file)
index 0000000..ec338a5
--- /dev/null
@@ -0,0 +1,472 @@
+/*
+ *                     RCS stream editor
+ */
+ static char rcsid[]=
+ "$Header: /usr/wft/RCS/SRC/RCS/rcsedit.c,v 3.7 83/05/12 13:04:39 wft Exp $ Purdue CS";
+/**********************************************************************************
+ *                       edits the input file according to a
+ *                       script from stdin, generated by diff -n
+ *                       performs keyword expansion
+ **********************************************************************************
+ *
+ * Copyright (C) 1982 by Walter F. Tichy
+ *                       Purdue University
+ *                       Computer Science Department
+ *                       West Lafayette, IN 47907
+ *
+ * All rights reserved. No part of this software may be sold or distributed
+ * in any form or by any means without the prior written permission of the
+ * author.
+ * Report problems and direct all inquiries to Tichy@purdue (ARPA net).
+ */
+
+
+/* $Log:       rcsedit.c,v $
+ * Revision 3.7  83/05/12  13:04:39  wft
+ * Added retry to expandline to resume after failed match which ended in $.
+ * Fixed truncation problem for $19chars followed by@@.
+ * Log no longer expands full path of RCS file.
+ * 
+ * Revision 3.5  82/12/04  13:20:56  wft
+ * Added expansion of keyword Locker.
+ * 
+ * Revision 3.4  82/12/03  12:26:54  wft
+ * Added line number correction in case editing does not start at the
+ * beginning of the file.
+ * Changed keyword expansion to always print a space before closing KDELIM;
+ * Expansion for Header shortened.
+ *
+ * Revision 3.3  82/11/14  14:49:30  wft
+ * removed Suffix from keyword expansion. Replaced fclose with ffclose.
+ * keyreplace() gets log message from delta, not from curlogmsg.
+ * fixed expression overflow in while(c=putc(GETC....
+ * checked nil printing.
+ *
+ * Revision 3.2  82/10/18  21:13:39  wft
+ * I added checks for write errors during the co process, and renamed
+ * expandstring() to xpandstring().
+ *
+ * Revision 3.1  82/10/13  15:52:55  wft
+ * changed type of result of getc() from char to int.
+ * made keyword expansion loop in expandline() portable to machines
+ * without sign-extension.
+ */
+
+
+#include "rcsbase.h"
+
+
+extern FILE * fopen();
+extern char * mktempfile();
+extern FILE * finptr, * frewrite;
+extern int rewriteflag;
+extern int nextc;
+extern char * getfullRCSname();
+extern char * RCSfilename;
+
+
+FILE  * fcopy,  * fedit; /* result and edit file descriptors                */
+char  *resultfile = nil; /* result file name                                */
+char  * editfile  = nil; /* edit   file name                                */
+int editline;  /*line counter in fedit; starts with 1, is always #lines+1   */
+int linecorr;  /*contains #adds - #deletes in each edit run.                */
+               /*used to correct editline in case file is not rewound after */
+               /* applying one delta                                        */
+
+initeditfiles(dir)
+char * dir;
+/* Function: Initializes resultfile and editfile with temporary filenames
+ * in directory dir. Opens resultfile for reading and writing, with fcopy
+ * as file descriptor. fedit is set to nil.
+ */
+{
+        resultfile=mktempfile(dir,TMPFILE1);
+        editfile  =mktempfile(dir,TMPFILE2);
+        fedit=nil;
+        if ((fcopy=fopen(resultfile,"w+"))==NULL) {
+                faterror("Can't open working file %s",resultfile);
+        }
+}
+
+
+swapeditfiles(tostdout)
+/* Function: swaps resultfile and editfile, assigns fedit=fcopy,
+ * rewinds fedit for reading, and opens resultfile for reading and
+ * writing, using fcopy. If tostdout, fcopy is set to stdout.
+ */
+{       char * tmpptr;
+        if(ferror(fcopy))
+                faterror("write failed on %s -- file system full?",resultfile);
+        fedit=fcopy;
+        if (editline!=1) rewind(fedit);
+        /* no need to rewind at beginning of file */
+        editline = 1; linecorr=0;
+        tmpptr=editfile; editfile=resultfile; resultfile=tmpptr;
+        if (tostdout)
+                fcopy=stdout;
+        elsif ((fcopy=fopen(resultfile,"w+"))==NULL) {
+                faterror("Can't open working file %s",resultfile);
+        }
+}
+
+
+finishedit(delta)
+struct hshentry * delta;
+/* copy the rest of the edit file and close it (if it exists).
+ * if delta!=nil, perform keyword substitution at the same time.
+ */
+{
+        register int c;
+        if (fedit!=nil) {
+                if (delta!=nil) {
+                        while (expandline(fedit,fcopy,delta,false,false)) editline++;
+                } else {
+                        while((c=getc(fedit))!=EOF) {
+                                putc(c,fcopy);
+                                if (c=='\n') editline++;
+                        }
+                }
+                ffclose(fedit);
+        }
+}
+
+
+copylines(line,delta)
+register int line; struct hshentry * delta;
+/* Function: copies input lines editline..line-1 from fedit to fcopy.
+ * If delta != nil, keyword expansion is done simultaneously.
+ * editline is updated. Rewinds a file only if necessary.
+ */
+{
+
+        if (editline>line) {
+                /* swap files */
+                finishedit(nil); swapeditfiles(false);
+                /* assumes edit only during last pass, from the beginning*/
+        }
+        while (editline<line) {
+                /*copy another line*/
+                if (delta)
+                        expandline(fedit,fcopy,delta,false,false);
+                else
+                        while (putc(getc(fedit),fcopy)!='\n');
+                editline++;
+        }
+}
+
+
+
+xpandstring(delta)
+struct hshentry * delta;
+/* Function: Reads a string terminated by SDELIM from finptr and writes it
+ * to fcopy. Double SDELIM is replaced with single SDELIM.
+ * Keyword expansion is performed with data from delta.
+ * If rewriteflag==true, the string is also copied unchanged to frewrite.
+ * editline is updated.
+ */
+{
+        editline=1;
+        while (expandline(finptr,fcopy,delta,true,rewriteflag)) editline++;
+        nextc='\n';
+}
+
+
+copystring()
+/* Function: copies a string terminated with a single SDELIM from finptr to
+ * fcopy, replacing all double SDELIM with a single SDELIM.
+ * If rewriteflag==true, the string also copied unchanged to frewrite.
+ * editline is set to (number of lines copied)+1.
+ * Assumption: next character read is first string character.
+ */
+{       register c, write;
+        write=rewriteflag;
+        editline=1;
+        while ((c=GETC(finptr,frewrite,write)) != EOF) {
+                if ((c==SDELIM)&&((c=GETC(finptr,frewrite,write)) != SDELIM)){
+                        /* end of string */
+                        nextc = c;
+                        return;
+                }
+                putc(c,fcopy);
+                if (c=='\n') editline++;
+        }
+        nextc = c;
+        serror("Unterminated string");
+        return;
+}
+
+
+
+
+editstring(delta)
+struct hshentry * delta;
+/* Function: reads an edit script from finptr and applies it to
+ * file fedit; the result is written to fcopy.
+ * If delta!=nil, keyword expansion is performed simultaneously.
+ * If frewrite==true, the edit script is also copied verbatim to frewrite.
+ * Assumes that all these files are open.
+ * If running out of lines in fedit, fedit and fcopy are swapped.
+ * resultfile and editfile are the names of the files that go with fcopy
+ * and fedit, respectively.
+ * Assumes the next input character from finptr is the first character of
+ * the edit script. Resets nextc on exit.
+ */
+{
+        int ed; /* editor command */
+        register int c;
+        register int write, i;
+        int line, length;
+
+        editline += linecorr; linecorr=0; /*correct line number*/
+        write=rewriteflag;
+        for (;;) {
+                /* read next command and decode */
+                /* assume next non-white character is command name*/
+                while((ed=GETC(finptr,frewrite,write))=='\n'||
+                        ed==' ' || ed=='\t');
+                if (ed==SDELIM) break;
+                /* now attempt to read numbers. */
+                /* fscanf causes trouble because of the required echoing */
+                while ((c=GETC(finptr,frewrite,write))==' ');  /*skip spaces*/
+                if (!('0'<=c && c<='9')) {
+                        faterror("missing line number in edit script");
+                        break;
+                }
+                line= c -'0';
+                while ('0'<=(c=GETC(finptr,frewrite,write)) && c<='9') {
+                        line = line*10 + c-'0';
+                }
+                while (c==' ') c=GETC(finptr,frewrite,write);
+                if (!('0'<=c && c<='9')) {
+                        faterror("incorrect range in edit script");
+                        break;
+                }
+                length= c -'0';
+                while ('0'<=(c=GETC(finptr,frewrite,write)) && c<='9') {
+                        length = length*10 + c-'0';
+                }
+                while(c!='\n'&&c!=EOF) c=GETC(finptr,frewrite,write); /* skip to end of line */
+
+                switch (ed) {
+                case 'd':
+                        copylines(line,delta);
+                        /* skip over unwanted lines */
+                        for (i=length;i>0;i--) {
+                                /*skip next line*/
+                                while (getc(fedit)!='\n');
+                                editline++;
+                        }
+                        linecorr -= length;
+                        break;
+                case 'a':
+                        copylines(line+1,delta); /*copy only; no delete*/
+                        for (i=length;i>0;i--) {
+                                /*copy next line from script*/
+                                if (delta!=nil)
+                                       expandline(finptr,fcopy,delta,true,write);
+                                else {
+                                       c = GETC(finptr,frewrite,write);
+                                       while (putc(c,fcopy)!='\n'){
+                                               if ((c==SDELIM)&&((c=GETC(finptr,frewrite,write))!=SDELIM)){
+                                                       serror("Missing string delimiter in edit script");
+                                                       putc(c,fcopy);
+                                               }
+                                               c = GETC(finptr,frewrite,write);
+                                       }
+                                }
+                        }
+                        linecorr += length;
+                        break;
+                default:
+                        faterror("unknown command in edit script: %c", ed);
+                        break;
+                }
+        }
+        nextc=GETC(finptr,frewrite,write);
+}
+
+
+
+/* The rest if for keyword expansion */
+
+struct { char * keyword; enum markers marker;} markertable[] =
+        {{AUTHOR,   Author  },
+         {DATE,     Date    },
+         {HEADER,   Header  },
+         {LOCKER,   Locker  },
+         {LOG,      Log     },
+         {REVISION, Revision},
+         {SOURCE,   Source  },
+         {STATE,    State   },
+         {nil,      Nomatch }};
+
+enum markers trymatch(string)
+char * string;
+/* function: Checks whether string is a keyword.
+ * If so, returns the appropriate marker, otherwise Nomatch.
+ */
+{
+        register int j;
+        for (j=0; markertable[j].keyword!=nil; j++ ) {
+                if (strcmp(string, markertable[j].keyword) ==0)
+                        return(markertable[j].marker);
+        }
+        return(Nomatch);
+}
+
+
+
+expandline(in, out, delta,delimstuffed,write)
+FILE * in, * out; struct hshentry * delta;
+register int delimstuffed, write;
+/* Function: Reads a line from in and writes it to out.
+ * If delimstuffed==true, double SDELIM is replaced with single SDELIM.
+ * Keyword expansion is performed with data from delta.
+ * If write==true, the string is also copied unchanged to frewrite.
+ * Returns false if end-of-string or end-of-line is detected, true otherwise.
+ */
+{
+        register c, j;
+        char keystring[keylength];
+        char keyval[keyvallength];
+        enum markers matchresult;
+
+        for (;;) {
+                c=GETC(in,frewrite,write);
+                if (c==EOF) {
+                        if(delimstuffed) {
+                                error("unterminated string");
+                                nextc=c;
+                        }
+                        return(false);
+                }
+
+                if (c==SDELIM && delimstuffed) {
+                        if ((c=GETC(in,frewrite,write))!=SDELIM) {
+                                /* end of string */
+                                nextc=c;
+                                return false;
+                        }
+                }
+                putc(c,out);
+
+                if (c=='\n') return true; /* end of line */
+
+retry:          if (c==KDELIM) {
+                        /* check for keyword */
+                        /* first, copy a long enough string into keystring */
+                        j=0;
+                        while (((c=GETC(in,frewrite,write))!=EOF) && (j<keylength-1) && (c!='\n')
+                               && (c!=KDELIM) && (c!=VDELIM)) {
+                              putc(c,out);
+                              keystring[j++] = c;
+                              if (c==SDELIM && delimstuffed) { /*skip next SDELIM */
+                                        c=GETC(in,frewrite,write);
+                                        /* Can't be at end of string -- always a '\n' before*/
+                                        /* closing SDELIM */
+                              }
+                        }
+                        if (!((c==KDELIM) || (c==VDELIM))) {
+                                /* no match */
+                               /* can get SDELIM here if have $...keylength-1 chars...@@ */
+                               if (c==SDELIM && delimstuffed) {
+                                       c=GETC(in,frewrite,write);
+                               }
+                                putc(c,out);
+                                if (c=='\n') return true; /* end of line */
+                        } else {
+                                /* no we have something that looks like a  */
+                                /* keyword, and is terminated with K/VDELIM*/
+                                keystring[j]= '\0';
+                                if ((matchresult=trymatch(keystring))==Nomatch) {
+                                      /* no match */
+                                      putc(c,out);
+                                     if (c==KDELIM) goto retry;
+                                } elsif (c==VDELIM) {
+                                      /* try to find closing KDELIM, and replace value */
+                                      j=0;
+                                      while (((c=GETC(in,frewrite,write)) != EOF)
+                                             && (c!='\n') && (c!=KDELIM) && (j<keyvallength-2)) {
+                                             keyval[j++] =c;
+                                              if (c==SDELIM && delimstuffed) { /*skip next SDELIM */
+                                                        c=GETC(in,frewrite,write);
+                                                        /* Can't be at end of string -- always a '\n' before*/
+                                                        /* closing SDELIM */
+                                              }
+                                      }
+                                     keyval[j++] =c;
+                                      if (c!=KDELIM) {
+                                            /* couldn't find closing KDELIM -- give up */
+                                            putc(VDELIM,out); keyval[j]='\0';fputs(keyval,out);
+                                            if (c=='\n') return true; /* end of line */
+                                      } else {
+                                            /* found complete pattern -- replace */
+                                            keyreplace(matchresult,delta,out);
+                                      }
+                                } else {
+                                      /* string of the form $keyword$ */
+                                      keyreplace(matchresult,delta,out);
+                                }
+                        }
+                }
+        } /* end for */
+}
+
+
+
+keyreplace(marker,delta,out)
+enum markers marker; struct hshentry * delta; FILE * out;
+/* function: ouputs the keyword value(s) corresponding to marker.
+ * Attributes are derived from delta.
+ */
+{
+        char * date;
+        register char * sp;
+
+        date= delta->date;
+
+        switch (marker) {
+        case Author:
+                fprintf(out,"%c %s %c",VDELIM,delta->author,KDELIM);
+                break;
+        case Date:
+                putc(VDELIM,out);putc(' ',out);
+                PRINTDATE(out,date);putc(' ',out);
+                PRINTTIME(out,date);putc(' ',out);putc(KDELIM,out);
+                break;
+        case Header:
+                fprintf(out,"%c %s %s ",VDELIM,bindex(RCSfilename,'/'),
+                                       delta->num);
+                PRINTDATE(out,date);putc(' ',out);PRINTTIME(out,date);
+                fprintf(out, " %s %s %c",delta->author,delta->state,KDELIM);
+                break;
+        case Locker:
+                fprintf(out,"%c %s %c", VDELIM,
+                        delta->lockedby==nil?"":delta->lockedby,KDELIM);
+                break;
+        case Log:
+                fprintf(out, "%c\t%s %c\n%sRevision %s  ",
+                       VDELIM, bindex(RCSfilename,'/'), KDELIM, Comment, delta->num);
+                PRINTDATE(out,date);fputs("  ",out);PRINTTIME(out,date);
+                fprintf(out, "  %s\n%s",delta->author,Comment);
+                /* do not include state here because it may change and is not updated*/
+                sp = delta->log;
+                while (*sp) if (putc(*sp++,out)=='\n') fputs(Comment,out);
+                /* Comment is the comment leader */
+                break;
+        case Revision:
+                fprintf(out,"%c %s %c",VDELIM,delta->num,KDELIM);
+                break;
+        case Source:
+                fprintf(out,"%c %s %c",VDELIM,getfullRCSname(),KDELIM);
+                break;
+        case State:
+                fprintf(out,"%c %s %c",VDELIM,delta->state,KDELIM);
+                break;
+        case Nomatch:
+                putc(KDELIM,out);
+                break;
+        }
+}
+
+
diff --git a/usr/src/new/new/spms/bin/pclean b/usr/src/new/new/spms/bin/pclean
new file mode 100755 (executable)
index 0000000..ca89a51
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/csh -f
+#
+# Clean SPMS Software Project Management System
+#
+
+cd ..
+setenv PROJECT $cwd
+
+#clean library source
+foreach p (libhash libpdb libslist libspms libtree)
+       cd $PROJECT/src/lib/$p/src
+       make clean
+end
+
+#clean program source
+cd $PROJECT/src/bin
+foreach p (*)
+       cd $PROJECT/src/bin/$p
+       make clean
+end
+
+#clean compiled libraries
+cd $PROJECT/lib
+make clean
+
+exit(0)
diff --git a/usr/src/new/new/spms/bin/pdepend b/usr/src/new/new/spms/bin/pdepend
new file mode 100755 (executable)
index 0000000..639fd9a
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/csh -f
+#
+# Make SPMS Software Project Management System dependencies
+#
+
+cd ..
+setenv PROJECT $cwd
+
+#library dependencies
+foreach p (libhash libpdb libslist libspms libtree)
+       cd $PROJECT/src/lib/$p/src
+       make depend
+end
+
+#program dependencies
+cd $PROJECT/src/bin
+foreach p (*)
+       cd $PROJECT/src/bin/$p
+       make depend
+end
+
+exit(0)
diff --git a/usr/src/new/new/spms/bin/pmake b/usr/src/new/new/spms/bin/pmake
new file mode 100755 (executable)
index 0000000..8161f93
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/csh -f
+#
+# Make SPMS Software Project Management System
+#
+
+cd ..
+setenv PROJECT $cwd
+
+#install libraries
+foreach p (libhash libpdb libslist libspms libtree)
+       cd $PROJECT/src/lib/$p/src
+       sed -e '/###/,$d' < Makefile > $$Mf
+       mv $$Mf Makefile
+       make install
+end
+
+#make programs
+cd $PROJECT/src/bin
+foreach p (*)
+       cd $PROJECT/src/bin/$p
+       sed -e '/###/,$d' < Makefile > $$Mf
+       mv $$Mf Makefile
+       make
+end
+
+exit(0)
diff --git a/usr/src/new/new/spms/src/bin/chproject/Makefile b/usr/src/new/new/spms/src/bin/chproject/Makefile
new file mode 100644 (file)
index 0000000..da08f2e
--- /dev/null
@@ -0,0 +1,84 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/bin.h \
+               ../../../include/macro.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pld.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = chproject.o
+
+PRINT        = pr
+
+PROGRAM              = chproject
+
+SRCS         = chproject.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+chproject.o: /usr/include/stdio.h ../../../include/bin.h \
+       ../../../include/macro.h ../../../include/path.h \
+       ../../../include/pdb.h ../../../include/pld.h ../../../include/spms.h \
+       /usr/include/sys/file.h ../../../include/system.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/mkmf/Makefile b/usr/src/new/new/spms/src/bin/mkmf/Makefile
new file mode 100644 (file)
index 0000000..df444a9
--- /dev/null
@@ -0,0 +1,133 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/slist.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/ctype.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/dir.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/types.h
+
+HDRS         = Mkmf.h \
+               defaultsfx.h \
+               hash.h \
+               suffix.h \
+               target.h
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lpdb.ln \
+               ../../../lib/llib-lspms.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = Mkmf.o \
+               buildlist.o \
+               depend.o \
+               editmf.o \
+               hash.o \
+               iolin.o \
+               macro.o \
+               misc.o \
+               suffix.o
+
+PRINT        = pr
+
+PROGRAM              = mkmf
+
+SRCS         = Mkmf.c \
+               buildlist.c \
+               depend.c \
+               editmf.c \
+               hash.c \
+               iolin.c \
+               macro.c \
+               misc.c \
+               suffix.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+Mkmf.o: Mkmf.h ../../../include/getarg.h hash.h ../../../include/null.h \
+       ../../../include/path.h target.h ../../../include/slist.h suffix.h \
+       /usr/include/sys/file.h ../../../include/system.h \
+       ../../../include/yesno.h defaultsfx.h
+buildlist.o: /usr/include/sys/types.h /usr/include/sys/dir.h \
+       /usr/include/stdio.h Mkmf.h hash.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/slist.h suffix.h \
+       ../../../include/system.h /usr/include/sys/file.h \
+       ../../../include/yesno.h
+depend.o: /usr/include/ctype.h /usr/include/stdio.h Mkmf.h hash.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/slist.h \
+       ../../../include/system.h /usr/include/sys/file.h \
+       ../../../include/yesno.h
+editmf.o: /usr/include/signal.h /usr/include/stdio.h Mkmf.h hash.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/slist.h ../../../include/system.h \
+       /usr/include/sys/file.h ../../../include/yesno.h
+hash.o: ../../../include/null.h hash.h ../../../include/macro.h
+iolin.o: /usr/include/stdio.h ../../../include/yesno.h
+macro.o: /usr/include/ctype.h /usr/include/stdio.h Mkmf.h hash.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/slist.h ../../../include/yesno.h
+misc.o: /usr/include/ctype.h /usr/include/stdio.h Mkmf.h hash.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h target.h ../../../include/spms.h \
+       ../../../include/system.h /usr/include/sys/file.h \
+       ../../../include/yesno.h
+suffix.o: /usr/include/stdio.h Mkmf.h hash.h ../../../include/macro.h \
+       ../../../include/null.h suffix.h ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/mkproject/Makefile b/usr/src/new/new/spms/src/bin/mkproject/Makefile
new file mode 100644 (file)
index 0000000..64c7f5c
--- /dev/null
@@ -0,0 +1,94 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pld.h \
+               ../../../include/slist.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/stat.h \
+               /usr/include/sys/types.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = mkproject.o
+
+PRINT        = pr
+
+PROGRAM              = mkproject
+
+SRCS         = mkproject.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+mkproject.o: /usr/include/signal.h /usr/include/stdio.h \
+       /usr/include/sys/types.h /usr/include/sys/stat.h \
+       ../../../include/getarg.h ../../../include/macro.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/pdb.h ../../../include/pld.h \
+       ../../../include/slist.h ../../../include/spms.h \
+       /usr/include/sys/file.h ../../../include/system.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pcp/Makefile b/usr/src/new/new/spms/src/bin/pcp/Makefile
new file mode 100644 (file)
index 0000000..fa682f6
--- /dev/null
@@ -0,0 +1,77 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/bin.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/yesno.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pcp.o
+
+PRINT        = pr
+
+PROGRAM              = pcp
+
+SRCS         = pcp.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS) pcopy
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pcp.o: ../../../include/bin.h ../../../include/macro.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pd/Makefile b/usr/src/new/new/spms/src/bin/pd/Makefile
new file mode 100644 (file)
index 0000000..8199a1e
--- /dev/null
@@ -0,0 +1,80 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pld.h \
+               ../../../include/spms.h \
+               ../../../include/yesno.h \
+               /usr/include/stdio.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pd.o
+
+PRINT        = pr
+
+PROGRAM              = pd
+
+SRCS         = pd.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pd.o: /usr/include/stdio.h ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h ../../../include/pld.h \
+       ../../../include/spms.h ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pdiff/Makefile b/usr/src/new/new/spms/src/bin/pdiff/Makefile
new file mode 100644 (file)
index 0000000..1b08e6a
--- /dev/null
@@ -0,0 +1,87 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pdtyp.h \
+               ../../../include/pld.h \
+               ../../../include/spms.h \
+               ../../../include/yesno.h \
+               /usr/include/stdio.h
+
+HDRS         = ptree.h
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pdiff.o \
+               ptree.o
+
+PRINT        = pr
+
+PROGRAM              = pdiff
+
+SRCS         = pdiff.c \
+               ptree.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pdiff.o: /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h \
+       ../../../include/pdtyp.h ../../../include/pld.h ptree.h \
+       ../../../include/spms.h ../../../include/yesno.h
+ptree.o: ../../../include/null.h ptree.h
diff --git a/usr/src/new/new/spms/src/bin/pexec/Makefile b/usr/src/new/new/spms/src/bin/pexec/Makefile
new file mode 100644 (file)
index 0000000..07c584f
--- /dev/null
@@ -0,0 +1,133 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/bin.h \
+               ../../../include/getarg.h \
+               ../../../include/hash.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pdtyp.h \
+               ../../../include/pld.h \
+               ../../../include/slist.h \
+               ../../../include/slslist.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/truefalse.h \
+               ../../../include/yesno.h \
+               /usr/include/ctype.h \
+               /usr/include/machine/param.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/param.h \
+               /usr/include/sys/types.h
+
+HDRS         = pdlist.h \
+               pdset.h
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libhash.a \
+               ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lhash.ln \
+               ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = Pexec.o \
+               exec.o \
+               execcmd.o \
+               misc.o \
+               pdlist.o \
+               pdset.o
+
+PRINT        = pr
+
+PROGRAM              = pexec
+
+SRCS         = Pexec.c \
+               exec.c \
+               execcmd.c \
+               misc.c \
+               pdlist.c \
+               pdset.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+strip:;                @strip $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+Pexec.o: ../../../include/bin.h ../../../include/macro.h \
+       ../../../include/getarg.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdtyp.h \
+       ../../../include/slist.h ../../../include/spms.h \
+       ../../../include/yesno.h
+exec.o: /usr/include/stdio.h ../../../include/macro.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/pdb.h pdlist.h ../../../include/pld.h \
+       ../../../include/slslist.h ../../../include/spms.h \
+       ../../../include/yesno.h
+execcmd.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/stdio.h \
+       /usr/include/machine/param.h /usr/include/sys/types.h \
+       /usr/include/sys/param.h ../../../include/bin.h \
+       ../../../include/path.h /usr/include/sys/file.h \
+       ../../../include/system.h ../../../include/yesno.h
+misc.o: /usr/include/stdio.h ../../../include/macro.h \
+       ../../../include/yesno.h
+pdlist.o: ../../../include/null.h pdlist.h ../../../include/yesno.h
+pdset.o: /usr/include/stdio.h ../../../include/hash.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h pdset.h pdlist.h \
+       ../../../include/pdtyp.h ../../../include/pld.h \
+       ../../../include/slist.h ../../../include/slslist.h \
+       ../../../include/spms.h ../../../include/truefalse.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pfind/Makefile b/usr/src/new/new/spms/src/bin/pfind/Makefile
new file mode 100644 (file)
index 0000000..0b30062
--- /dev/null
@@ -0,0 +1,94 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pdtyp.h \
+               ../../../include/pld.h \
+               ../../../include/slslist.h \
+               ../../../include/spms.h \
+               ../../../include/yesno.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/dir.h \
+               /usr/include/sys/types.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = Pfind.o \
+               binary.o
+
+PRINT        = pr
+
+PROGRAM              = pfind
+
+SRCS         = Pfind.c \
+               binary.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+Pfind.o: /usr/include/sys/types.h /usr/include/sys/dir.h \
+       /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h \
+       ../../../include/pdtyp.h ../../../include/pld.h \
+       ../../../include/slslist.h ../../../include/spms.h \
+       ../../../include/yesno.h
+binary.o: ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pgrep/Makefile b/usr/src/new/new/spms/src/bin/pgrep/Makefile
new file mode 100644 (file)
index 0000000..6db10b8
--- /dev/null
@@ -0,0 +1,75 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/spms.h \
+               /usr/include/stdio.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pgrep.o
+
+PRINT        = pr
+
+PROGRAM              = pgrep
+
+SRCS         = pgrep.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pgrep.o: /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/spms.h
diff --git a/usr/src/new/new/spms/src/bin/phelp/Makefile b/usr/src/new/new/spms/src/bin/phelp/Makefile
new file mode 100644 (file)
index 0000000..0eb7ee5
--- /dev/null
@@ -0,0 +1,104 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/slist.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/tree.h \
+               ../../../include/yesno.h \
+               /usr/include/ctype.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/dir.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/types.h
+
+HDRS         = phelp.h
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libtree.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-ltree.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = Phelp.o \
+               index.o \
+               requestq.o
+
+PRINT        = pr
+
+PROGRAM              = phelp
+
+SRCS         = Phelp.c \
+               index.c \
+               requestq.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+Phelp.o: /usr/include/sys/types.h /usr/include/sys/dir.h \
+       /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h phelp.h ../../../include/spms.h \
+       ../../../include/yesno.h
+index.o: /usr/include/sys/types.h /usr/include/sys/dir.h \
+       /usr/include/stdio.h ../../../include/null.h phelp.h \
+       ../../../include/slist.h ../../../include/tree.h \
+       ../../../include/yesno.h
+requestq.o: /usr/include/ctype.h /usr/include/stdio.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h phelp.h ../../../include/slist.h \
+       ../../../include/spms.h /usr/include/sys/file.h \
+       ../../../include/system.h ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/plog/Makefile b/usr/src/new/new/spms/src/bin/plog/Makefile
new file mode 100644 (file)
index 0000000..35434b7
--- /dev/null
@@ -0,0 +1,94 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/bin.h \
+               ../../../include/getarg.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/ctype.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h
+
+HDRS         = date.h \
+               from.h
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = Plog.o \
+               date.o \
+               from.o
+
+PRINT        = pr
+
+PROGRAM              = plog
+
+SRCS         = Plog.c \
+               date.c \
+               from.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+Plog.o: /usr/include/ctype.h /usr/include/signal.h /usr/include/stdio.h \
+       ../../../include/bin.h date.h from.h ../../../include/getarg.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/spms.h /usr/include/sys/file.h \
+       ../../../include/system.h ../../../include/yesno.h
+date.o: /usr/include/ctype.h date.h ../../../include/null.h \
+       ../../../include/yesno.h
+from.o: /usr/include/ctype.h /usr/include/stdio.h date.h from.h \
+       ../../../include/null.h ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pman/Makefile b/usr/src/new/new/spms/src/bin/pman/Makefile
new file mode 100644 (file)
index 0000000..ef1ada5
--- /dev/null
@@ -0,0 +1,77 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/path.h \
+               ../../../include/spms.h \
+               ../../../include/yesno.h \
+               /usr/include/stdio.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pman.o
+
+PRINT        = pr
+
+PROGRAM              = pman
+
+SRCS         = pman.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pman.o: /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/path.h ../../../include/spms.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pmkdir/Makefile b/usr/src/new/new/spms/src/bin/pmkdir/Makefile
new file mode 100644 (file)
index 0000000..c0bd26e
--- /dev/null
@@ -0,0 +1,92 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pld.h \
+               ../../../include/slist.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/stat.h \
+               /usr/include/sys/types.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pmkdir.o
+
+PRINT        = pr
+
+PROGRAM              = pmkdir
+
+SRCS         = pmkdir.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pmkdir.o: /usr/include/signal.h /usr/include/stdio.h \
+       /usr/include/sys/types.h /usr/include/sys/stat.h \
+       ../../../include/getarg.h ../../../include/macro.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/pdb.h ../../../include/pld.h \
+       ../../../include/slist.h /usr/include/sys/file.h \
+       ../../../include/system.h ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/pmv/Makefile b/usr/src/new/new/spms/src/bin/pmv/Makefile
new file mode 100644 (file)
index 0000000..36c4028
--- /dev/null
@@ -0,0 +1,77 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/bin.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/yesno.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pmv.o
+
+PRINT        = pr
+
+PROGRAM              = pmv
+
+SRCS         = pmv.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS) pmove
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pmv.o: ../../../include/bin.h ../../../include/macro.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/ppd/Makefile b/usr/src/new/new/spms/src/bin/ppd/Makefile
new file mode 100644 (file)
index 0000000..f63e217
--- /dev/null
@@ -0,0 +1,88 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pdtyp.h \
+               ../../../include/pld.h \
+               ../../../include/slslist.h \
+               ../../../include/spms.h \
+               ../../../include/yesno.h \
+               /usr/include/stdio.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = ppd.o
+
+PRINT        = pr
+
+PROGRAM              = ppd
+
+SRCS         = ppd.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+ppd.o: /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h \
+       ../../../include/pdtyp.h ../../../include/pld.h \
+       ../../../include/slslist.h ../../../include/spms.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/prmdir/Makefile b/usr/src/new/new/spms/src/bin/prmdir/Makefile
new file mode 100644 (file)
index 0000000..0daf9d4
--- /dev/null
@@ -0,0 +1,95 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pld.h \
+               ../../../include/slist.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/machine/param.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/param.h \
+               /usr/include/sys/types.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = prmdir.o
+
+PRINT        = pr
+
+PROGRAM              = prmdir
+
+SRCS         = prmdir.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+prmdir.o: /usr/include/machine/param.h /usr/include/signal.h \
+       /usr/include/sys/types.h /usr/include/sys/param.h \
+       /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h ../../../include/pld.h \
+       ../../../include/slist.h ../../../include/spms.h \
+       /usr/include/sys/file.h ../../../include/system.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/ptest/Makefile b/usr/src/new/new/spms/src/bin/ptest/Makefile
new file mode 100644 (file)
index 0000000..0f2c8cf
--- /dev/null
@@ -0,0 +1,50 @@
+# $Header$
+#
+DEST         = $(DESTDIR)/usr/new
+
+MAKEFILE      = Makefile
+
+PRINT        = pr
+
+PROGRAM              = ptest
+
+SRCS         = ptest.sh
+
+SUFFIX       = .sh:s
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):    $(SRCS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @cp $(SRCS) $(PROGRAM)
+               @echo "done"
+
+clean:;
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install $(PROGRAM) $(DEST)
+
+lint:;
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:;
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
diff --git a/usr/src/new/new/spms/src/bin/pwp/Makefile b/usr/src/new/new/spms/src/bin/pwp/Makefile
new file mode 100644 (file)
index 0000000..aa76e86
--- /dev/null
@@ -0,0 +1,84 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pdbuf.h \
+               ../../../include/pld.h \
+               ../../../include/spms.h \
+               ../../../include/yesno.h \
+               /usr/include/pwd.h \
+               /usr/include/stdio.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = pwp.o
+
+PRINT        = pr
+
+PROGRAM              = pwp
+
+SRCS         = pwp.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+pwp.o: /usr/include/pwd.h /usr/include/stdio.h ../../../include/macro.h \
+       ../../../include/null.h ../../../include/path.h \
+       ../../../include/pdb.h ../../../include/pdbuf.h \
+       ../../../include/pld.h ../../../include/spms.h \
+       ../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/bin/rmproject/Makefile b/usr/src/new/new/spms/src/bin/rmproject/Makefile
new file mode 100644 (file)
index 0000000..2456e3f
--- /dev/null
@@ -0,0 +1,100 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../include -O
+
+DEST         = $(DESTDIR)/usr/new
+
+EXTHDRS              = ../../../include/getarg.h \
+               ../../../include/macro.h \
+               ../../../include/null.h \
+               ../../../include/path.h \
+               ../../../include/pdb.h \
+               ../../../include/pld.h \
+               ../../../include/slist.h \
+               ../../../include/spms.h \
+               ../../../include/system.h \
+               ../../../include/yesno.h \
+               /usr/include/machine/param.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/param.h \
+               /usr/include/sys/types.h
+
+HDRS         =
+
+LDFLAGS              =
+
+LIBS         = ../../../lib/libslist.a \
+               ../../../lib/libspms.a \
+               ../../../lib/libpdb.a \
+               ../../../lib/libspms.a
+
+LINKER       = cc
+
+LINTFLAGS     = -D$(VERSION) -I../../../include
+
+LINTLIST      = ../../../lib/llib-lslist.ln \
+               ../../../lib/llib-lspms.ln \
+               ../../../lib/llib-lpdb.ln \
+               -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = rmproject.o \
+               savepld.o
+
+PRINT        = pr
+
+PROGRAM              = rmproject
+
+SRCS         = rmproject.c \
+               savepld.c
+
+VERSION              = V4BSD
+
+all:           $(PROGRAM)
+
+$(PROGRAM):     $(OBJS) $(LIBS)
+               @echo -n "Loading $(PROGRAM) ... "
+               @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(PROGRAM)
+               @echo Installing $(PROGRAM) in $(DEST)
+               @install -s $(PROGRAM) $(DEST)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+program:        $(PROGRAM)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:                $(DEST)/$(PROGRAM)
+
+$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags
+###
+rmproject.o: /usr/include/machine/param.h /usr/include/signal.h \
+       /usr/include/sys/types.h /usr/include/sys/param.h \
+       /usr/include/stdio.h ../../../include/getarg.h \
+       ../../../include/macro.h ../../../include/null.h \
+       ../../../include/path.h ../../../include/pdb.h ../../../include/pld.h \
+       ../../../include/slist.h ../../../include/spms.h \
+       /usr/include/sys/file.h ../../../include/system.h \
+       ../../../include/yesno.h
+savepld.o: /usr/include/stdio.h ../../../include/path.h \
+       ../../../include/pld.h ../../../include/system.h \
+       /usr/include/sys/file.h
diff --git a/usr/src/new/new/spms/src/lib/libhash/src/Makefile b/usr/src/new/new/spms/src/lib/libhash/src/Makefile
new file mode 100644 (file)
index 0000000..1cf88c1
--- /dev/null
@@ -0,0 +1,96 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../../include -O
+
+DEST         = ../../../../lib
+
+EXTHDRS              = ../../../../include/hash.h \
+               ../../../../include/macro.h \
+               ../../../../include/null.h
+
+HDRS         =
+
+LIBNAME              = hash
+
+LIBRARY              = lib$(LIBNAME).a
+
+LINTFLAGS     = -D$(VERSION) -I../../../../include
+
+LINTLIB              = llib-l$(LIBNAME).ln
+
+LINTLIST      = -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = hthash.o \
+               htinit.o \
+               htinstall.o \
+               htlookup.o \
+               htrm.o
+
+PRINT        = pr
+
+SRCS         = hthash.c \
+               htinit.c \
+               htinstall.c \
+               htlookup.c \
+               htrm.c
+
+VERSION              = V4BSD
+
+all:           $(LIBRARY)
+
+$(LIBRARY):    $(OBJS) $(LINTLIB)
+               @echo -n "Loading $(LIBRARY) ... "
+               @ar cru $(LIBRARY) $(OBJS)
+               @ranlib $(LIBRARY)
+               @echo "done"
+
+$(LINTLIB):    $(SRCS) $(HDRS) $(EXTHDRS)
+               @echo "Loading $(LINTLIB) ..."
+               @lint $(LINTFLAGS) -C$(LIBNAME) $(SRCS)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) LIBRARY=$(LIBRARY) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+extract:;      @ar xo $(DEST)/$(LIBRARY)
+               @rm -f __.SYMDEF
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(LIBRARY)
+               @echo Installing $(LIBRARY) in $(DEST)
+               @install $(LIBRARY) $(DEST)
+               @ranlib $(DEST)/$(LIBRARY)
+               @echo Installing $(LINTLIB) in $(DEST)
+               @install $(LINTLIB) $(DEST)
+
+library:        $(LIBRARY)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+lintlib:       $(LINTLIB)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:         $(DEST)/$(LIBRARY)
+
+$(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
+               @-ar xo $(DEST)/$(LIBRARY)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags clean
+###
+hthash.o: ../../../../include/hash.h
+htinit.o: ../../../../include/null.h ../../../../include/hash.h
+htinstall.o: ../../../../include/null.h ../../../../include/hash.h
+htlookup.o: ../../../../include/null.h ../../../../include/hash.h \
+       ../../../../include/macro.h
+htrm.o: ../../../../include/null.h ../../../../include/hash.h \
+       ../../../../include/macro.h
diff --git a/usr/src/new/new/spms/src/lib/libpdb/src/Makefile b/usr/src/new/new/spms/src/lib/libpdb/src/Makefile
new file mode 100644 (file)
index 0000000..e194bb8
--- /dev/null
@@ -0,0 +1,234 @@
+# $Header$
+#
+CFLAGS       = -DOPTIMIZE -D$(VERSION) -I../../../../include -O
+
+DEST         = ../../../../lib
+
+EXTHDRS              = ../../../../include/null.h \
+               ../../../../include/path.h \
+               ../../../../include/pdb.h \
+               ../../../../include/pdbuf.h \
+               ../../../../include/system.h \
+               ../../../../include/yesno.h \
+               /usr/include/stdio.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/file.h
+
+HDRS         =
+
+LIBNAME              = pdb
+
+LIBRARY              = lib$(LIBNAME).a
+
+LINTFLAGS     = -DOPTIMIZE -D$(VERSION) -I../../../../include
+
+LINTLIB              = llib-l$(LIBNAME).ln
+
+LINTLIST      = -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = _closepdb.o \
+               closepdb.o \
+               errpdb.o \
+               mustopenpdb.o \
+               openpdb.o \
+               paddkey.o \
+               pbaddflag.o \
+               pbaddkey.o \
+               pbaddstring.o \
+               pbchgkey.o \
+               pbclear.o \
+               pbcmpfield.o \
+               pbcmpkey.o \
+               pbcpyfield.o \
+               pbcpykey.o \
+               pbfndflag.o \
+               pbfndkey.o \
+               pbfndstring.o \
+               pbgetkey.o \
+               pbgetstring.o \
+               pblenfield.o \
+               pblenkey.o \
+               pbrmflag.o \
+               pbrmkey.o \
+               pbrmstring.o \
+               pbshrink.o \
+               pbskipfield.o \
+               pbskipkey.o \
+               pbstretch.o \
+               pchgkey.o \
+               pfndent.o \
+               pgetent.o \
+               pputent.o \
+               pputflag.o \
+               pputstring.o \
+               prment.o \
+               prmflag.o \
+               prmkey.o \
+               prmstring.o \
+               resetpdb.o \
+               rewindpdb.o
+
+PRINT        = pr
+
+SRCS         = _closepdb.c \
+               closepdb.c \
+               errpdb.c \
+               mustopenpdb.c \
+               openpdb.c \
+               paddkey.c \
+               pbaddflag.c \
+               pbaddkey.c \
+               pbaddstring.c \
+               pbchgkey.c \
+               pbclear.c \
+               pbcmpfield.c \
+               pbcmpkey.c \
+               pbcpyfield.c \
+               pbcpykey.c \
+               pbfndflag.c \
+               pbfndkey.c \
+               pbfndstring.c \
+               pbgetkey.c \
+               pbgetstring.c \
+               pblenfield.c \
+               pblenkey.c \
+               pbrmflag.c \
+               pbrmkey.c \
+               pbrmstring.c \
+               pbshrink.c \
+               pbskipfield.c \
+               pbskipkey.c \
+               pbstretch.c \
+               pchgkey.c \
+               pfndent.c \
+               pgetent.c \
+               pputent.c \
+               pputflag.c \
+               pputstring.c \
+               prment.c \
+               prmflag.c \
+               prmkey.c \
+               prmstring.c \
+               resetpdb.c \
+               rewindpdb.c
+
+VERSION              = V4BSD
+
+all:           $(LIBRARY)
+
+$(LIBRARY):    $(OBJS) $(LINTLIB)
+               @echo -n "Loading $(LIBRARY) ... "
+               @ar cru $(LIBRARY) $(OBJS)
+               @ranlib $(LIBRARY)
+               @echo "done"
+
+$(LINTLIB):    $(SRCS) $(HDRS) $(EXTHDRS)
+               @echo "Loading $(LINTLIB) ..."
+               @lint $(LINTFLAGS) -C$(LIBNAME) $(SRCS)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) LIBRARY=$(LIBRARY) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+extract:;      @ar xo $(DEST)/$(LIBRARY)
+               @rm -f __.SYMDEF
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(LIBRARY)
+               @echo Installing $(LIBRARY) in $(DEST)
+               @install $(LIBRARY) $(DEST)
+               @ranlib $(DEST)/$(LIBRARY)
+               @echo Installing $(LINTLIB) in $(DEST)
+               @install $(LINTLIB) $(DEST)
+
+library:        $(LIBRARY)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+lintlib:       $(LINTLIB)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:         $(DEST)/$(LIBRARY)
+
+$(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
+               @-ar xo $(DEST)/$(LIBRARY)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags clean
+###
+_closepdb.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h
+closepdb.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h /usr/include/sys/file.h \
+       ../../../../include/system.h
+errpdb.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h
+mustopenpdb.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/system.h /usr/include/sys/file.h \
+       ../../../../include/yesno.h
+openpdb.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/system.h /usr/include/sys/file.h \
+       ../../../../include/yesno.h
+paddkey.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h
+pbaddflag.o: ../../../../include/pdbuf.h ../../../../include/yesno.h
+pbaddkey.o: ../../../../include/pdbuf.h ../../../../include/yesno.h
+pbaddstring.o: ../../../../include/pdbuf.h ../../../../include/yesno.h
+pbchgkey.o: ../../../../include/null.h ../../../../include/pdbuf.h \
+       ../../../../include/yesno.h
+pbcmpfield.o: ../../../../include/pdbuf.h
+pbcmpkey.o: ../../../../include/pdbuf.h
+pbcpyfield.o: ../../../../include/pdbuf.h
+pbcpykey.o: ../../../../include/pdbuf.h
+pbfndflag.o: ../../../../include/pdbuf.h ../../../../include/yesno.h
+pbfndkey.o: ../../../../include/null.h ../../../../include/pdbuf.h
+pbfndstring.o: ../../../../include/null.h ../../../../include/pdbuf.h
+pbgetstring.o: ../../../../include/pdbuf.h
+pblenfield.o: ../../../../include/pdbuf.h
+pblenkey.o: ../../../../include/pdbuf.h
+pbrmflag.o: ../../../../include/pdbuf.h
+pbrmkey.o: ../../../../include/pdbuf.h
+pbrmstring.o: ../../../../include/pdbuf.h
+pbskipfield.o: ../../../../include/pdbuf.h
+pbskipkey.o: ../../../../include/pdbuf.h
+pbstretch.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h ../../../../include/yesno.h
+pchgkey.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h
+pfndent.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/yesno.h
+pgetent.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h
+pputent.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h ../../../../include/yesno.h
+pputflag.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/yesno.h
+pputstring.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/yesno.h
+prment.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h
+prmflag.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h
+prmkey.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h
+prmstring.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h
+resetpdb.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h
+rewindpdb.o: /usr/include/stdio.h ../../../../include/path.h \
+       ../../../../include/pdb.h ../../../../include/system.h \
+       /usr/include/sys/file.h
diff --git a/usr/src/new/new/spms/src/lib/libslist/src/Makefile b/usr/src/new/new/spms/src/lib/libslist/src/Makefile
new file mode 100644 (file)
index 0000000..8a16d9b
--- /dev/null
@@ -0,0 +1,147 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../../include -O
+
+DEST         = ../../../../lib
+
+EXTHDRS              = ../../../../include/macro.h \
+               ../../../../include/null.h \
+               ../../../../include/slist.h \
+               ../../../../include/slslist.h \
+               ../../../../include/yesno.h \
+               /usr/include/stdio.h
+
+HDRS         =
+
+LIBNAME              = slist
+
+LIBRARY              = lib$(LIBNAME).a
+
+LINTFLAGS     = -D$(VERSION) -I../../../../include
+
+LINTLIB              = llib-l$(LIBNAME).ln
+
+LINTLIST      = -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = slappend.o \
+               slget.o \
+               slinit.o \
+               slpop.o \
+               slprepend.o \
+               slprint.o \
+               slrewind.o \
+               slrm.o \
+               slsappend.o \
+               slsget.o \
+               slsinit.o \
+               slsort.o \
+               slsplice.o \
+               slsprepend.o \
+               slsprint.o \
+               slsrewind.o \
+               slsrm.o \
+               slssort.o
+
+PRINT        = pr
+
+SRCS         = slappend.c \
+               slget.c \
+               slinit.c \
+               slpop.c \
+               slprepend.c \
+               slprint.c \
+               slrewind.c \
+               slrm.c \
+               slsappend.c \
+               slsget.c \
+               slsinit.c \
+               slsort.c \
+               slsplice.c \
+               slsprepend.c \
+               slsprint.c \
+               slsrewind.c \
+               slsrm.c \
+               slssort.c
+
+VERSION              = V4BSD
+
+all:           $(LIBRARY)
+
+$(LIBRARY):    $(OBJS) $(LINTLIB)
+               @echo -n "Loading $(LIBRARY) ... "
+               @ar cru $(LIBRARY) $(OBJS)
+               @ranlib $(LIBRARY)
+               @echo "done"
+
+$(LINTLIB):    $(SRCS) $(HDRS) $(EXTHDRS)
+               @echo "Loading $(LINTLIB) ..."
+               @lint $(LINTFLAGS) -C$(LIBNAME) $(SRCS)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) LIBRARY=$(LIBRARY) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+extract:;      @ar xo $(DEST)/$(LIBRARY)
+               @rm -f __.SYMDEF
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(LIBRARY)
+               @echo Installing $(LIBRARY) in $(DEST)
+               @install $(LIBRARY) $(DEST)
+               @ranlib $(DEST)/$(LIBRARY)
+               @echo Installing $(LINTLIB) in $(DEST)
+               @install $(LINTLIB) $(DEST)
+
+library:        $(LIBRARY)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+lintlib:       $(LINTLIB)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:         $(DEST)/$(LIBRARY)
+
+$(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
+               @-ar xo $(DEST)/$(LIBRARY)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags clean
+###
+slappend.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slist.h
+slget.o: ../../../../include/null.h ../../../../include/slist.h
+slinit.o: ../../../../include/null.h ../../../../include/slist.h
+slpop.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slist.h ../../../../include/yesno.h
+slprepend.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slist.h
+slprint.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/slist.h ../../../../include/yesno.h
+slrewind.o: ../../../../include/slist.h
+slrm.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slist.h
+slsappend.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slslist.h
+slsget.o: ../../../../include/null.h ../../../../include/slslist.h
+slsinit.o: ../../../../include/null.h ../../../../include/slslist.h
+slsort.o: ../../../../include/null.h ../../../../include/slist.h \
+       ../../../../include/yesno.h
+slsplice.o: ../../../../include/slist.h
+slsprepend.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slslist.h
+slsprint.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/slslist.h ../../../../include/yesno.h
+slsrewind.o: ../../../../include/slslist.h
+slsrm.o: ../../../../include/macro.h ../../../../include/null.h \
+       ../../../../include/slslist.h
+slssort.o: ../../../../include/null.h ../../../../include/slslist.h \
+       ../../../../include/yesno.h
diff --git a/usr/src/new/new/spms/src/lib/libspms/src/Makefile b/usr/src/new/new/spms/src/lib/libspms/src/Makefile
new file mode 100644 (file)
index 0000000..71bed1a
--- /dev/null
@@ -0,0 +1,244 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../../include -O
+
+DEST         = ../../../../lib
+
+EXTHDRS              = ../../../../include/bin.h \
+               ../../../../include/macro.h \
+               ../../../../include/null.h \
+               ../../../../include/path.h \
+               ../../../../include/pdb.h \
+               ../../../../include/pdbuf.h \
+               ../../../../include/pdtyp.h \
+               ../../../../include/pld.h \
+               ../../../../include/spms.h \
+               ../../../../include/system.h \
+               ../../../../include/truefalse.h \
+               ../../../../include/yesno.h \
+               /usr/include/ctype.h \
+               /usr/include/machine/param.h \
+               /usr/include/pwd.h \
+               /usr/include/sgtty.h \
+               /usr/include/signal.h \
+               /usr/include/stdio.h \
+               /usr/include/sys/dir.h \
+               /usr/include/sys/file.h \
+               /usr/include/sys/ioctl.h \
+               /usr/include/sys/param.h \
+               /usr/include/sys/stat.h \
+               /usr/include/sys/ttychars.h \
+               /usr/include/sys/ttydev.h \
+               /usr/include/sys/types.h
+
+HDRS         =
+
+LIBNAME              = spms
+
+LIBRARY              = lib$(LIBNAME).a
+
+LINTFLAGS     = -D$(VERSION) -I../../../../include
+
+LINTLIB              = llib-l$(LIBNAME).ln
+
+LINTLIST      = -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = argvtos.o \
+               chproject.o \
+               diff.o \
+               fatal.o \
+               getcpd.o \
+               getcwp.o \
+               gethdir.o \
+               getproject.o \
+               getpwdir.o \
+               getshell.o \
+               getwd.o \
+               isfg.o \
+               isintract.o \
+               mk_dir.o \
+               mkalias.o \
+               mustfopen.o \
+               optpath.o \
+               pathcat.o \
+               pathhead.o \
+               pathtail.o \
+               pdtmatch.o \
+               pdtparse.o \
+               pdtyp.o \
+               pfxcpy.o \
+               ppathcat.o \
+               ppathhead.o \
+               pperror.o \
+               readpath.o \
+               readpld.o \
+               rm_dir.o \
+               strpcpy.o \
+               strsav.o \
+               warn.o \
+               xorpath.o \
+               xppath.o \
+               yes.o
+
+PRINT        = pr
+
+SRCS         = argvtos.c \
+               chproject.c \
+               diff.c \
+               fatal.c \
+               getcpd.c \
+               getcwp.c \
+               gethdir.c \
+               getproject.c \
+               getpwdir.c \
+               getshell.c \
+               getwd.c \
+               isfg.c \
+               isintract.c \
+               mk_dir.c \
+               mkalias.c \
+               mustfopen.c \
+               optpath.c \
+               pathcat.c \
+               pathhead.c \
+               pathtail.c \
+               pdtmatch.c \
+               pdtparse.c \
+               pdtyp.c \
+               pfxcpy.c \
+               ppathcat.c \
+               ppathhead.c \
+               pperror.c \
+               readpath.c \
+               readpld.c \
+               rm_dir.c \
+               strpcpy.c \
+               strsav.c \
+               warn.c \
+               xorpath.c \
+               xppath.c \
+               yes.c
+
+VERSION              = V4BSD
+
+all:           $(LIBRARY)
+
+$(LIBRARY):    $(OBJS) $(LINTLIB)
+               @echo -n "Loading $(LIBRARY) ... "
+               @ar cru $(LIBRARY) $(OBJS)
+               @ranlib $(LIBRARY)
+               @echo "done"
+
+$(LINTLIB):    $(SRCS) $(HDRS) $(EXTHDRS)
+               @echo "Loading $(LINTLIB) ..."
+               @lint $(LINTFLAGS) -C$(LIBNAME) $(SRCS)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) LIBRARY=$(LIBRARY) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+extract:;      @ar xo $(DEST)/$(LIBRARY)
+               @rm -f __.SYMDEF
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(LIBRARY)
+               @echo Installing $(LIBRARY) in $(DEST)
+               @install $(LIBRARY) $(DEST)
+               @ranlib $(DEST)/$(LIBRARY)
+               @echo Installing $(LINTLIB) in $(DEST)
+               @install $(LINTLIB) $(DEST)
+
+library:        $(LIBRARY)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+lintlib:       $(LINTLIB)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:         $(DEST)/$(LIBRARY)
+
+$(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
+               @-ar xo $(DEST)/$(LIBRARY)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags clean
+###
+argvtos.o: ../../../../include/null.h
+chproject.o: ../../../../include/null.h ../../../../include/path.h \
+       ../../../../include/yesno.h
+diff.o: /usr/include/machine/param.h /usr/include/signal.h \
+       /usr/include/sys/types.h /usr/include/sys/param.h \
+       ../../../../include/bin.h /usr/include/sys/file.h \
+       ../../../../include/system.h
+fatal.o: /usr/include/stdio.h
+getcpd.o: /usr/include/stdio.h ../../../../include/macro.h \
+       ../../../../include/null.h ../../../../include/path.h \
+       ../../../../include/pdb.h ../../../../include/pdbuf.h \
+       ../../../../include/pld.h ../../../../include/yesno.h
+getcwp.o: ../../../../include/null.h
+gethdir.o: /usr/include/stdio.h /usr/include/pwd.h \
+       ../../../../include/null.h ../../../../include/path.h
+getproject.o: ../../../../include/null.h
+getpwdir.o: /usr/include/pwd.h ../../../../include/macro.h \
+       ../../../../include/null.h
+getshell.o: ../../../../include/bin.h ../../../../include/null.h
+getwd.o: /usr/include/sys/param.h /usr/include/sys/stat.h \
+       /usr/include/sys/dir.h ../../../../include/null.h \
+       ../../../../include/path.h
+isfg.o: /usr/include/stdio.h /usr/include/signal.h \
+       /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h \
+       /usr/include/sys/ioctl.h /usr/include/sgtty.h \
+       ../../../../include/system.h /usr/include/sys/file.h \
+       ../../../../include/yesno.h
+isintract.o: /usr/include/stdio.h /usr/include/signal.h \
+       /usr/include/sys/ioctl.h /usr/include/sgtty.h \
+       ../../../../include/system.h /usr/include/sys/file.h \
+       ../../../../include/yesno.h
+mk_dir.o: /usr/include/sys/param.h ../../../../include/bin.h \
+       ../../../../include/system.h /usr/include/sys/file.h
+mkalias.o: ../../../../include/path.h
+mustfopen.o: /usr/include/stdio.h
+optpath.o: ../../../../include/path.h
+pathcat.o: /usr/include/stdio.h ../../../../include/path.h
+pathhead.o: ../../../../include/path.h
+pathtail.o: ../../../../include/path.h
+pdtmatch.o: ../../../../include/null.h ../../../../include/pdtyp.h \
+       ../../../../include/truefalse.h ../../../../include/yesno.h
+pdtparse.o: ../../../../include/null.h ../../../../include/macro.h \
+       ../../../../include/pdtyp.h ../../../../include/truefalse.h \
+       ../../../../include/yesno.h
+pdtyp.o: /usr/include/ctype.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/yesno.h
+ppathcat.o: ../../../../include/path.h
+ppathhead.o: ../../../../include/path.h
+pperror.o: /usr/include/stdio.h
+readpath.o: /usr/include/stdio.h /usr/include/sys/types.h \
+       /usr/include/sys/stat.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/pdbuf.h ../../../../include/pld.h \
+       ../../../../include/spms.h ../../../../include/yesno.h
+readpld.o: /usr/include/stdio.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/pdbuf.h ../../../../include/pld.h \
+       ../../../../include/yesno.h
+rm_dir.o: /usr/include/sys/param.h ../../../../include/bin.h \
+       ../../../../include/macro.h ../../../../include/system.h \
+       /usr/include/sys/file.h
+strsav.o: ../../../../include/null.h
+warn.o: /usr/include/stdio.h
+xorpath.o: ../../../../include/path.h
+xppath.o: /usr/include/pwd.h /usr/include/stdio.h /usr/include/sys/types.h \
+       /usr/include/sys/stat.h ../../../../include/null.h \
+       ../../../../include/path.h ../../../../include/pdb.h \
+       ../../../../include/pld.h ../../../../include/system.h \
+       /usr/include/sys/file.h ../../../../include/yesno.h
+yes.o: /usr/include/stdio.h
diff --git a/usr/src/new/new/spms/src/lib/libtree/src/Makefile b/usr/src/new/new/spms/src/lib/libtree/src/Makefile
new file mode 100644 (file)
index 0000000..326a742
--- /dev/null
@@ -0,0 +1,87 @@
+# $Header$
+#
+CFLAGS       = -D$(VERSION) -I../../../../include -O
+
+DEST         = ../../../../lib
+
+EXTHDRS              = ../../../../include/null.h \
+               ../../../../include/tree.h
+
+HDRS         =
+
+LIBNAME              = tree
+
+LIBRARY              = lib$(LIBNAME).a
+
+LINTFLAGS     = -D$(VERSION) -I../../../../include
+
+LINTLIB              = llib-l$(LIBNAME).ln
+
+LINTLIST      = -lc
+
+MAKEFILE      = Makefile
+
+OBJS         = tree.o \
+               treerm.o \
+               treesearch.o
+
+PRINT        = pr
+
+SRCS         = tree.c \
+               treerm.c \
+               treesearch.c
+
+VERSION              = V4BSD
+
+all:           $(LIBRARY)
+
+$(LIBRARY):    $(OBJS) $(LINTLIB)
+               @echo -n "Loading $(LIBRARY) ... "
+               @ar cru $(LIBRARY) $(OBJS)
+               @ranlib $(LIBRARY)
+               @echo "done"
+
+$(LINTLIB):    $(SRCS) $(HDRS) $(EXTHDRS)
+               @echo "Loading $(LINTLIB) ..."
+               @lint $(LINTFLAGS) -C$(LIBNAME) $(SRCS)
+               @echo "done"
+
+clean:;                @rm -f $(OBJS)
+
+co:;           @co -r$(VERSION) $(HDRS) $(SRCS)
+
+depend:;       @mkmf -f $(MAKEFILE) LIBRARY=$(LIBRARY) DEST=$(DEST)
+
+diff:;         @rcsdiff -r$(VERSION) $(HDRS) $(SRCS)
+
+extract:;      @ar xo $(DEST)/$(LIBRARY)
+               @rm -f __.SYMDEF
+
+index:;                @ctags -wx $(HDRS) $(SRCS)
+
+install:       $(LIBRARY)
+               @echo Installing $(LIBRARY) in $(DEST)
+               @install $(LIBRARY) $(DEST)
+               @ranlib $(DEST)/$(LIBRARY)
+               @echo Installing $(LINTLIB) in $(DEST)
+               @install $(LINTLIB) $(DEST)
+
+library:        $(LIBRARY)
+
+lint:;         @lint $(LINTFLAGS) $(SRCS) $(LINTLIST)
+
+lintlib:       $(LINTLIB)
+
+print:;                @$(PRINT) $(HDRS) $(SRCS)
+
+tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
+
+update:         $(DEST)/$(LIBRARY)
+
+$(DEST)/$(LIBRARY): $(SRCS) $(HDRS) $(EXTHDRS)
+               @-ar xo $(DEST)/$(LIBRARY)
+               @make -f $(MAKEFILE) DEST=$(DEST) install tags clean
+###
+tree.o: ../../../../include/tree.h ../../../../include/null.h
+treerm.o: ../../../../include/tree.h ../../../../include/null.h
+treesearch.o: ../../../../include/tree.h ../../../../include/null.h