home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume22 / et / patch01 / diff
Text File  |  1990-06-07  |  8KB  |  277 lines

  1. *** /tmp/,RCSt1018539    Thu Jun  7 23:46:54 1990
  2. --- Makefile    Thu Jun  7 23:26:33 1990
  3. ***************
  4. *** 4,34 ****
  5.   # Copyright 1987, 1989 MIT Student Information Processing Board
  6.   # For copyright info, see mit-sipb-copyright.h.
  7.   #
  8. ! #    $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/Makefile,v 1.2 89/11/07 18:56:09 jik Exp $
  9.   #    $Locker:  $
  10.   #
  11.   
  12. ! CFLAGS=    -O
  13. ! LINTFLAGS= -uhvpb
  14. ! LINTFILES= error_message.c et_name.c init_et.c com_err.c # perror.c
  15. ! LIBOBJS= error_message.o et_name.o init_et.o com_err.o # perror.o
  16.   
  17. ! BINDIR=/usr/athena
  18. ! INCDIR=/usr/include
  19. ! LIBDIR=/usr/athena/lib
  20. ! DOCDIR=/usr/doc/athena
  21.   DESTDIR=
  22.   
  23. ! FILES=    Makefile et_name.c error_message.c compile_et.c \
  24. !         error_table.y et_lex.lex.l init_et.c \
  25. !         com_err.c com_err.h \
  26. !         error_table.h mit-sipb-copyright.h \
  27. !         test.c test1.et test2.et \
  28. !         compiler.h internal.h \
  29. !         com_err.texinfo texinfo.tex strcasecmp.c
  30. ! CFILES=    compile_et.c error_table.c error_message.c et_name.c \
  31. !     init_et.c com_err.c strcasecmp.c
  32.   
  33.   #
  34.   # what to build...
  35.   #
  36. --- 4,40 ----
  37.   # Copyright 1987, 1989 MIT Student Information Processing Board
  38.   # For copyright info, see mit-sipb-copyright.h.
  39.   #
  40. ! #    $Header: /afs/athena.mit.edu/user/j/jik/src/delete/et/RCS/Makefile,v 1.7 90/06/07 23:26:23 jik Exp $
  41.   #    $Locker:  $
  42.   #
  43.   
  44. ! RANLIB=     ranlib
  45.   
  46. ! DEFINES= 
  47. ! CFLAGS=        -O $(DEFINES)
  48. ! LINTFLAGS=     -uhvpb
  49. ! LINTFILES=     error_message.c et_name.c init_et.c com_err.c
  50. ! LIBOBJS=     error_message.o et_name.o init_et.o com_err.o
  51. ! BINDIR=        /usr/athena
  52. ! INCDIR=        /usr/include
  53. ! LIBDIR=        /usr/athena/lib
  54. ! DOCDIR=        /usr/doc/athena
  55.   DESTDIR=
  56.   
  57. ! CFILES=        com_err.c compile_et.c error_message.c et_name.c\
  58. !         init_et.c strcasecmp.c test.c
  59. ! HFILES=        com_err.h compiler.h error_table.h internal.h\
  60. !         mit-sipb-copyright.h 
  61. ! MANS=        com_err.3 compile_et.1
  62. ! YACCS=        error_table.y
  63. ! LEXS=        et_lex.lex.l
  64. ! ETS=        test1.et test2.et
  65. ! FILES=        MANIFEST Makefile PATCHLEVEL README\
  66. !         com_err.texinfo.Z.uu profiled texinfo.tex.Z.uu\
  67. !         $(CFILES) $(HFILES) $(MANS) $(YACCS) $(LEXS) $(ETS)
  68.   
  69.   #
  70.   # what to build...
  71.   #
  72. ***************
  73. *** 71,80 ****
  74.       ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o\
  75.           strcasecmp.o -ll
  76.   
  77. - et.tar:    ${FILES}
  78. -     rm -f et.tar
  79. -     tar cfrlv et.tar ${FILES}
  80.   tags:    TAGS
  81.   
  82.   com_err.ps : com_err.dvi
  83. --- 77,82 ----
  84. ***************
  85. *** 88,96 ****
  86.       install -c -m 444 mit-sipb-copyright.h \
  87.                   ${DESTDIR}${INCDIR}/mit-sipb-copyright.h
  88.       install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
  89. !     ranlib ${DESTDIR}${LIBDIR}/libcom_err.a
  90.       install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
  91. !     ranlib ${DESTDIR}${LIBDIR}/libcom_err_p.a
  92.       install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
  93.       install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
  94.       install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
  95. --- 90,98 ----
  96.       install -c -m 444 mit-sipb-copyright.h \
  97.                   ${DESTDIR}${INCDIR}/mit-sipb-copyright.h
  98.       install -c libcom_err.a ${DESTDIR}${LIBDIR}/libcom_err.a
  99. !     ${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err.a
  100.       install -c libcom_err_p.a ${DESTDIR}${LIBDIR}/libcom_err_p.a
  101. !     ${RANLIB} ${DESTDIR}${LIBDIR}/libcom_err_p.a
  102.       install -c com_err.texinfo ${DESTDIR}${DOCDIR}/com_err.texinfo
  103.       install -c com_err.3 ${DESTDIR}/usr/man/man3/com_err.3
  104.       install -c compile_et.1 ${DESTDIR}/usr/man/man1/compile_et.1
  105. ***************
  106. *** 102,112 ****
  107.   
  108.   libcom_err.a:    $(LIBOBJS)
  109.       ar cruv libcom_err.a $(LIBOBJS)
  110. !     ranlib libcom_err.a
  111.   
  112.   libcom_err_p.a:    $(LIBOBJS)
  113.       (cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
  114. !         ranlib ../libcom_err_p.a)
  115.   
  116.   libcom_err.o:    $(LIBOBJS)
  117.       ld -r -s -o libcom_err.o $(LIBOBJS)
  118. --- 104,114 ----
  119.   
  120.   libcom_err.a:    $(LIBOBJS)
  121.       ar cruv libcom_err.a $(LIBOBJS)
  122. !     ${RANLIB} libcom_err.a
  123.   
  124.   libcom_err_p.a:    $(LIBOBJS)
  125.       (cd profiled; ar uv ../libcom_err_p.a $(LIBOBJS); \
  126. !         ${RANLIB} ../libcom_err_p.a)
  127.   
  128.   libcom_err.o:    $(LIBOBJS)
  129.       ld -r -s -o libcom_err.o $(LIBOBJS)
  130. ***************
  131. *** 125,130 ****
  132. --- 127,143 ----
  133.           et_lex.lex.c \
  134.           test1.h test1.c test2.h test2.c test \
  135.           eddep makedep
  136. + patch: $(FILES)
  137. +     makepatch $(ARCHIVE)
  138. +     mv patch com_err.patch`cat PATCHLEVEL`
  139. +     shar com_err.patch`cat PATCHLEVEL` > com_err.patch`cat PATCHLEVEL`.shar
  140. + shar: $(FILES)
  141. +     makekit -oMANIFEST $(FILES)
  142. + tar: $(ARCHIVE)
  143. +     tar cvf - $(ARCHIVE) | compress > com_err.tar.Z
  144.   
  145.   # for testing
  146.   test:    test.o test1.o test2.o libcom_err.a
  147. *** /dev/null    Thu Jun  7 23:46:57 1990
  148. --- PATCHLEVEL    Thu Jun  7 21:50:52 1990
  149. ***************
  150. *** 0 ****
  151. --- 1 ----
  152. ! 1
  153. *** /dev/null    Thu Jun  7 23:46:58 1990
  154. --- README    Thu Jun  7 23:04:48 1990
  155. ***************
  156. *** 0 ****
  157. --- 1,50 ----
  158. +                ABOUT THE COM_ERR LIBARY
  159. +   The com_err library was written by members of the Student
  160. + Information Processing Board (SIPB) at MIT, to provide a useful
  161. + standardized method for dealing with program errors when writing
  162. + software.
  163. +   The version of com_err contained here is currently in flux; the
  164. + original authors are working on enhancements, although no definite
  165. + release date for them has been set.  You should be aware that when the
  166. + new version comes out, the programming interface to the library may
  167. + change slightly or not-so-slightly, depending on what the authors feel
  168. + is needed.
  169. +   The file com_err.texinfo (and texinfo.tex, for processing it)
  170. + contains the detailed documenation for the library.  They may be
  171. + compressed and uuencoded when you receive them, since they contain
  172. + some control characters in their original form.
  173. +                  BUILDING IT
  174. +   It should be relatively easy to compile the com_err package on most
  175. + architectures.  To do so, make the following changes to the Makefile:
  176. + 1. Change RANLIB from "ranlib" to some innocuous command like "echo"
  177. +    if you don't have ranlib on your system.
  178. + 2. If your system is System V based, add "-DSYSV" to DEFINES.
  179. + 3. If you plan on installing the library, include files,
  180. +    documentation and compile_et program, change BINDIR, INCDIR,
  181. +    LIBDIR, and DOCDIR.
  182. + After that, you should be all set.
  183. +                   QUESTIONS?
  184. +   I didn't write com_err, but I'm willing to answer questions and/or
  185. + direct them to someone who can.  See my signature to find out how to
  186. + contact me.
  187. +   See the file mit-sipb-copyright.h for copyright and distribution
  188. + information.
  189. + Jonathan Kamens                          USnail:
  190. + MIT Project Athena                11 Ashford Terrace
  191. + jik@Athena.MIT.EDU                Allston, MA  02134
  192. + Office: 617-253-8495                  Home: 617-782-0710
  193. *** /tmp/,RCSt1018539    Thu Jun  7 23:47:10 1990
  194. --- compile_et.c    Thu Jun  7 21:49:08 1990
  195. ***************
  196. *** 8,13 ****
  197. --- 8,17 ----
  198.    */
  199.   
  200.   #include <stdio.h>
  201. + #ifdef _AUX_SOURCE
  202. + /* AUX uses caddr_t in <sys/file.h>, and it's defined in <sys/types.h> */
  203. + #include <sys/types.h>
  204. + #endif
  205.   #include <sys/file.h>
  206.   #include <string.h>
  207.   #include <sys/param.h>
  208. ***************
  209. *** 23,29 ****
  210.       "Copyright 1987,1988 by MIT Student Information Processing Board";
  211.   
  212.   static const char rcsid_compile_et_c[] =
  213. !     "$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 $";
  214.   #endif
  215.   
  216.   extern char *gensym();
  217. --- 27,33 ----
  218.       "Copyright 1987,1988 by MIT Student Information Processing Board";
  219.   
  220.   static const char rcsid_compile_et_c[] =
  221. !     "$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 $";
  222.   #endif
  223.   
  224.   extern char *gensym();
  225. *** /tmp/,RCSt1018539    Thu Jun  7 23:47:19 1990
  226. --- et_lex.lex.l    Thu Jun  7 22:54:17 1990
  227. ***************
  228. *** 1,7 ****
  229. --- 1,13 ----
  230.   PC    [^\"]
  231.   AN    [A-Z_a-z0-9]
  232.   %{
  233. + #ifdef SYSV
  234. + #include <string.h>
  235. + #define index strchr
  236. + #define rindex strrchr
  237. + #else
  238.   #include <strings.h>
  239. + #endif /* SYSV */
  240.   %}
  241.   %%
  242.   
  243. ***************
  244. *** 25,29 ****
  245.   .        { return (*yytext); }
  246.   %%
  247.   #ifndef lint
  248. ! 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 $";
  249.   #endif
  250. --- 31,35 ----
  251.   .        { return (*yytext); }
  252.   %%
  253.   #ifndef lint
  254. ! 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 $";
  255.   #endif
  256.