home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume22
/
et
/
patch01
/
diff
Wrap
Text File
|
1990-06-07
|
8KB
|
277 lines
*** /tmp/,RCSt1018539 Thu Jun 7 23:46:54 1990
--- Makefile Thu Jun 7 23:26:33 1990
***************
*** 4,34 ****
# Copyright 1987, 1989 MIT Student Information Processing Board
# For copyright info, see mit-sipb-copyright.h.
#
! # $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/Makefile,v 1.2 89/11/07 18:56:09 jik Exp $
# $Locker: $
#
! CFLAGS= -O
! LINTFLAGS= -uhvpb
! LINTFILES= error_message.c et_name.c init_et.c com_err.c # perror.c
! LIBOBJS= error_message.o et_name.o init_et.o com_err.o # perror.o
! BINDIR=/usr/athena
! INCDIR=/usr/include
! LIBDIR=/usr/athena/lib
! DOCDIR=/usr/doc/athena
DESTDIR=
! FILES= Makefile et_name.c error_message.c compile_et.c \
! error_table.y et_lex.lex.l init_et.c \
! com_err.c com_err.h \
! error_table.h mit-sipb-copyright.h \
! test.c test1.et test2.et \
! compiler.h internal.h \
! com_err.texinfo texinfo.tex strcasecmp.c
! CFILES= compile_et.c error_table.c error_message.c et_name.c \
! init_et.c com_err.c strcasecmp.c
#
# what to build...
#
--- 4,40 ----
# Copyright 1987, 1989 MIT Student Information Processing Board
# For copyright info, see mit-sipb-copyright.h.
#
! # $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/Makefile,v 1.7 90/06/07 23:26:23 jik Exp $
# $Locker: $
#
! RANLIB= ranlib
! DEFINES=
! CFLAGS= -O $(DEFINES)
! LINTFLAGS= -uhvpb
! LINTFILES= error_message.c et_name.c init_et.c com_err.c
! LIBOBJS= error_message.o et_name.o init_et.o com_err.o
!
! BINDIR= /usr/athena
! INCDIR= /usr/include
! LIBDIR= /usr/athena/lib
! DOCDIR= /usr/doc/athena
DESTDIR=
! CFILES= com_err.c compile_et.c error_message.c et_name.c\
! init_et.c strcasecmp.c test.c
! HFILES= com_err.h compiler.h error_table.h internal.h\
! mit-sipb-copyright.h
! MANS= com_err.3 compile_et.1
! YACCS= error_table.y
! LEXS= et_lex.lex.l
! ETS= test1.et test2.et
! FILES= MANIFEST Makefile PATCHLEVEL README\
! com_err.texinfo.Z.uu profiled texinfo.tex.Z.uu\
! $(CFILES) $(HFILES) $(MANS) $(YACCS) $(LEXS) $(ETS)
+
#
# what to build...
#
***************
*** 71,80 ****
${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o\
strcasecmp.o -ll
- et.tar: ${FILES}
- rm -f et.tar
- tar cfrlv et.tar ${FILES}
-
tags: TAGS
com_err.ps : com_err.dvi
--- 77,82 ----
***************
*** 88,96 ****
install -c -m 444 mit-sipb-copyright.h \
${DESTDIR}${INCDIR}/mit-sipb-copyright.h
install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
! ranlib ${DESTDIR}${LIBDIR}/libcom_err.a
install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
! ranlib ${DESTDIR}${LIBDIR}/libcom_err_p.a
install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
--- 90,98 ----
install -c -m 444 mit-sipb-copyright.h \
${DESTDIR}${INCDIR}/mit-sipb-copyright.h
install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
! ${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err.a
install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
! ${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err_p.a
install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
***************
*** 102,112 ****
libcom_err.a: $(LIBOBJS)
ar cruv libcom_err.a $(LIBOBJS)
! ranlib libcom_err.a
libcom_err_p.a: $(LIBOBJS)
(cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
! ranlib ../libcom_err_p.a)
libcom_err.o: $(LIBOBJS)
ld -r -s -o libcom_err.o $(LIBOBJS)
--- 104,114 ----
libcom_err.a: $(LIBOBJS)
ar cruv libcom_err.a $(LIBOBJS)
! ${RANLIB} libcom_err.a
libcom_err_p.a: $(LIBOBJS)
(cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
! ${RANLIB} ../libcom_err_p.a)
libcom_err.o: $(LIBOBJS)
ld -r -s -o libcom_err.o $(LIBOBJS)
***************
*** 125,130 ****
--- 127,143 ----
et_lex.lex.c \
test1.h test1.c test2.h test2.c test \
eddep makedep
+
+ patch: $(FILES)
+ makepatch $(ARCHIVE)
+ mv patch com_err.patch`cat PATCHLEVEL`
+ shar com_err.patch`cat PATCHLEVEL` > com_err.patch`cat PATCHLEVEL`.shar
+
+ shar: $(FILES)
+ makekit -oMANIFEST $(FILES)
+
+ tar: $(ARCHIVE)
+ tar cvf - $(ARCHIVE) | compress > com_err.tar.Z
# for testing
test: test.o test1.o test2.o libcom_err.a
*** /dev/null Thu Jun 7 23:46:57 1990
--- PATCHLEVEL Thu Jun 7 21:50:52 1990
***************
*** 0 ****
--- 1 ----
! 1
*** /dev/null Thu Jun 7 23:46:58 1990
--- README Thu Jun 7 23:04:48 1990
***************
*** 0 ****
--- 1,50 ----
+ ABOUT THE COM_ERR LIBARY
+
+ The com_err library was written by members of the Student
+ Information Processing Board (SIPB) at MIT, to provide a useful
+ standardized method for dealing with program errors when writing
+ software.
+
+ The version of com_err contained here is currently in flux; the
+ original authors are working on enhancements, although no definite
+ release date for them has been set. You should be aware that when the
+ new version comes out, the programming interface to the library may
+ change slightly or not-so-slightly, depending on what the authors feel
+ is needed.
+
+ The file com_err.texinfo (and texinfo.tex, for processing it)
+ contains the detailed documenation for the library. They may be
+ compressed and uuencoded when you receive them, since they contain
+ some control characters in their original form.
+
+
+ BUILDING IT
+
+ It should be relatively easy to compile the com_err package on most
+ architectures. To do so, make the following changes to the Makefile:
+
+ 1. Change RANLIB from "ranlib" to some innocuous command like "echo"
+ if you don't have ranlib on your system.
+
+ 2. If your system is System V based, add "-DSYSV" to DEFINES.
+
+ 3. If you plan on installing the library, include files,
+ documentation and compile_et program, change BINDIR, INCDIR,
+ LIBDIR, and DOCDIR.
+
+ After that, you should be all set.
+
+
+ QUESTIONS?
+
+ I didn't write com_err, but I'm willing to answer questions and/or
+ direct them to someone who can. See my signature to find out how to
+ contact me.
+
+ See the file mit-sipb-copyright.h for copyright and distribution
+ information.
+
+ Jonathan Kamens USnail:
+ MIT Project Athena 11 Ashford Terrace
+ jik@Athena.MIT.EDU Allston, MA 02134
+ Office: 617-253-8495 Home: 617-782-0710
*** /tmp/,RCSt1018539 Thu Jun 7 23:47:10 1990
--- compile_et.c Thu Jun 7 21:49:08 1990
***************
*** 8,13 ****
--- 8,17 ----
*/
#include <stdio.h>
+ #ifdef _AUX_SOURCE
+ /* AUX uses caddr_t in <sys/file.h>, and it's defined in <sys/types.h> */
+ #include <sys/types.h>
+ #endif
#include <sys/file.h>
#include <string.h>
#include <sys/param.h>
***************
*** 23,29 ****
"Copyright 1987,1988 by MIT Student Information Processing Board";
static const char rcsid_compile_et_c[] =
! "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/compile_et.c,v 1.1 89/11/07 19:05:27 jik Exp $";
#endif
extern char *gensym();
--- 27,33 ----
"Copyright 1987,1988 by MIT Student Information Processing Board";
static const char rcsid_compile_et_c[] =
! "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/compile_et.c,v 1.2 90/06/07 21:48:57 jik Exp $";
#endif
extern char *gensym();
*** /tmp/,RCSt1018539 Thu Jun 7 23:47:19 1990
--- et_lex.lex.l Thu Jun 7 22:54:17 1990
***************
*** 1,7 ****
--- 1,13 ----
PC [^\"]
AN [A-Z_a-z0-9]
%{
+ #ifdef SYSV
+ #include <string.h>
+ #define index strchr
+ #define rindex strrchr
+ #else
#include <strings.h>
+ #endif /* SYSV */
%}
%%
***************
*** 25,29 ****
. { return (*yytext); }
%%
#ifndef lint
! static char rcsid_et_lex_lex_l[] = "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/et_lex.lex.l,v 1.2 89/11/07 19:00:35 jik Exp $";
#endif
--- 31,35 ----
. { return (*yytext); }
%%
#ifndef lint
! static char rcsid_et_lex_lex_l[] = "$Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/et_lex.lex.l,v 1.3 90/06/07 22:53:55 jik Exp $";
#endif