rick@seismo.UUCP (Rick Adams) (09/19/84)
cat <<'E_O_F' Extracting the following shar file will give you a shell script that will update the original 9 part source distribution to the current version. (It's in shar format because some sites don't handle "." in the first column correctly). Almost all of these changes are for portability. All sites should make these changes. ---rick E_O_F echo x - diff-e sed 's/^X//' >diff-e <<'*-*-END-of-diff-e-*-*' Xed - Makefile.usg << '-*-END-*-' X231c Xfullname.o: defs.h params.h header.h X $(CC) $(CFLAGS) -c fullname.c X. X197c Xrecmail: recmail.c defs.h params.h header.h X. X158c X $(CC) $(LFLAGS) $(VOBJECTS) -ltermlib $(LIBS) -o $@ X. X136c Xpostnews.o: postnews.c defs.h params.h header.h X. X51c XEXPSRCS = expire.c header.c funcs.c getdate.c iextern.c \ X. X41c XEXPOBJS= expire.o header.o funcs.o getdate.o iextern.o epathinit.o \ X. X1c X# @(#)Makefile.usg 2.27 9/17/84 X. Xw Xq X-*-END-*- Xed - Makefile.v7 << '-*-END-*-' X231c Xfullname.o: defs.h params.h header.h X $(CC) $(CFLAGS) -c fullname.c X. X197c Xrecmail: recmail.c defs.h params.h header.h X. X158c X $(CC) $(LFLAGS) $(VOBJECTS) -ltermlib $(LIBS) -o $@ X. X136c Xpostnews.o: postnews.c defs.h params.h header.h X. X51c XEXPSRCS = expire.c header.c funcs.c getdate.c iextern.c \ X. X41c XEXPOBJS= expire.o header.o funcs.o getdate.o iextern.o epathinit.o \ X. X1c X# @(#)Makefile.v7 2.28 9/17/84 X. Xw Xq X-*-END-*- Xed - compress.c << '-*-END-*-' X288c X#endif BSD4_2 /* Long filenames allowed */ X. X281c X#ifndef BSD4_2 /* Short filenames */ X. X166c X#endif BSD4_2 X. X163c X#ifdef BSD4_2 X. X24c Xstatic char *SccsId = "@(#)compress.c 1.6 9/12/84"; X. Xw Xq X-*-END-*- Xed - control.c << '-*-END-*-' X556,557d X517a X#endif !u370 X. X516a X#ifdef u370 X static struct hbuf h; X#else !u370 X. X269c X sprintf(bfr, "exec %s/rmgroup %s", LIB, argv[1]); X. X246c X X. X232,244c X if (!validng(argv[1])) X. X224,225d X144a X#endif !u370 X. X143a X struct srec srec; X#ifdef u370 X static struct hbuf h; X#else !u370 X. X141d X116a X#endif !u370 X. X115a X#ifdef u370 X static struct hbuf htmp; X#else !u370 X. X29,30c X if (strncmp(h->title, "cmsg ", 5) == 0) { X register char *cp1, *cp2; X cp1 = h->title; X cp2 = h->title + 5; X while(*cp1++ = *cp2++) X ; X } X. X9c Xstatic char *SccsId = "@(#)control.c 2.30 9/12/84"; X. Xw Xq X-*-END-*- Xed - defs.dist << '-*-END-*-' X15c X#define NEWS_VERSION "B 2.10.2 9/18/84" X. X13c X/* @(#)defs.dist 2.38 9/18/84 */ X. Xw Xq X-*-END-*- Xed - expire.c << '-*-END-*-' X531c X if (stat(nbuf, &stbuf) < 0 || X. X528,529c X nbuf[gdsize] = '/'; X strcpy(&nbuf[gdsize+1], ngdir->d_name); X. X525,526c X gdsize = strlen(nbuf); X if ((ngdirp = opendir(nbuf)) != NULL) { X. X521c X for (p1=nbuf; *p1; p1++) X. X515c X if (sscanf(afline,"%s %ld %ld %c",nbuf,&maxart, &minart, X. X440c X printf("Good article %s\n", h.ident); X. X319c X if (!ngmatch(nbuf, ngpat)) { X. X304,305c X strcpy(nbuf, p2); X p3 = index(nbuf, '/'); X. X286c X } while ( ngdir == NULL || !islegal(fn,nbuf,ngdir->d_name)); X. X280c X if ((ngdirp = opendir(nbuf)) == NULL) X. X276c X for (p1=nbuf; *p1; p1++) X. X271c X if (!ngmatch(nbuf, ngpat)) X. X268c X p1 = index(nbuf, '\n'); X. X265,266c X strcpy(nbuf, afline); X p1 = index(nbuf, ' '); X. X75c X DIR *ngdirp = NULL; X. X71,72d X69d X62a Xchar ngpat[LBUFLEN]; Xchar afline[BUFLEN]; Xstruct hbuf h; X. X38c Xchar baduser[BUFLEN]; Xextern char filename[], nbuf[]; X. X24d X8c Xstatic char *SccsId = "@(#)expire.c 2.32 9/12/84"; X. Xw Xq X-*-END-*- Xed - fullname.c << '-*-END-*-' X60,61c X static char inbuf[BUFLEN]; X char fbuf[BUFLEN]; X. X37c X static char inbuf[BUFLEN]; X. X20,26c X#include "params.h" X. X17c Xstatic char *SccsId = "@(#)fullname.c 1.8 9/17/84"; X. Xw Xq X-*-END-*- Xed - funcs.c << '-*-END-*-' X355d X14a Xextern char *Progname; X X. X6c Xstatic char *SccsId = "@(#)funcs.c 2.20 9/12/84"; X. Xw Xq X-*-END-*- Xed - iextern.c << '-*-END-*-' X19c Xchar filename[BUFLEN]; /* general-use file name */ X. X6c Xstatic char *SccsId = "@(#)iextern.c 2.12 9/12/84"; X. Xw Xq X-*-END-*- Xed - ifuncs.c << '-*-END-*-' X669c X *p = '\0'; X } X. X665,666c X if (buf[0] >= 'A') { X fn = buf; X. X663c X read(fd, buf, sizeof buf); X. X660c X sprintf(buf, "%s/%s", userhome, ".name"); X. X654d X650,652c X register char *fn, *p; X char buf[BUFLEN]; X. X587c X if(isproc && ngroups > 1 && index(os1, '.') == NULL) { X. X525a X ngroups++; X. X492a X int ngroups = 1; X. X366c X xerror("Cannot save partial news in %s", sfname); X. X67c X ngmatch(h.distribution, srec.s_nbuf) || X ngmatch(h.nbuf, h.distribution)) { X. X6c Xstatic char *SccsId = "@(#)ifuncs.c 2.35 9/12/84"; X. Xw Xq X-*-END-*- Xed - makeactive.sh << '-*-END-*-' X231c Xif test $# -eq 3 -o $# -eq 2 X. X3c X: '@(#)makeactive 1.10 9/17/84' X. Xw Xq X-*-END-*- Xed - postnews.c << '-*-END-*-' X661a X strcpy(subject, buf+9); X } else X. X659c X if (article_line(baseart, "Subject: ", buf)) { X if (!prefix(buf+9, "Re:")) X. X453c X p = getenv("NEWSARCHIVE"); X. X386d X114a X if(ccname[0]) X. X11,20c X#include "params.h" X. X8c Xstatic char *SccsId = "@(#)postnews.c 1.16 9/18/84"; X. Xw Xq X-*-END-*- Xed - process.c << '-*-END-*-' X54a X#else !TMAIL X fprintf(stderr, "Usage: readnews [ -a [ date ]] [ -n newsgroups ] [ -t titles ] [ -lprxhfu ]\n"); X#endif !TMAIL X. X53a X#ifdef TMAIL X. X24a X#else !TMAIL X'\377', '\0', FALSE, OPTION, UNKNOWN, UNKNOWN,(char *)NULL, X#endif !TMAIL X. X23a X#ifdef TMAIL X. X5c X#ifndef lint Xstatic char *SccsId = "@(#)process.c 2.10 9/18/84"; X#endif !lint X. Xw Xq X-*-END-*- Xed - readr.c << '-*-END-*-' X652d X614d X6c Xstatic char *SccsId = "@(#)readr.c 2.48 9/18/84"; X. Xw Xq X-*-END-*- Xed - recmail.c << '-*-END-*-' X13,18c X#include "params.h" X. X10c Xstatic char *SccsId = "@(#)recmail.c 1.9 9/17/84"; X. Xw Xq X-*-END-*- Xed - rfuncs2.c << '-*-END-*-' X317a X#endif !u370 X. X316a X#ifdef u370 X static struct hbuf hh; X#else !u370 X. X50a X#endif !u370 X. X49a X#ifdef u370 X static struct hbuf hh; X#else !u370 X. X6c Xstatic char *SccsId = "@(#)rfuncs2.c 1.18 9/12/84"; X. Xw Xq X-*-END-*- Xed - rparams.h << '-*-END-*-' X5c X/* @(#)rparams.h 2.16 9/12/84 */ X. Xw Xq X-*-END-*- Xed - sendnews.c << '-*-END-*-' X60c X sprintf(buffer, "/bin/mail %s", *argv); X. X57c X printf("/bin/mail %s\n", *argv); X. X6c Xstatic char *SccsId = "@(#)sendnews.c 2.9 9/17/84"; X. Xw Xq X-*-END-*- Xed - virtterm.c << '-*-END-*-' X646c X for (p = direct ; *plodstr = *p++ ; plodstr++) X ; X. X507c X for (j = 0; j < len && vp->l[j] == ap->l[j]; j++) X ; X. X473,474c X for (p = &lp->l[lp->len]; --p >= lp->l && *p == ' ';) X ; X lp->len = (int) (p - lp->l) + 1; X. X329d X66d X7a X#ifndef lint Xstatic char *SccsId = "@(#)virtterm.c 1.5 9/14/84"; X#endif !lint X X. X6d X2c X * Virtual terminal handler X. Xw Xq X-*-END-*- Xed - visual.c << '-*-END-*-' X1979,1982c X int getpgrp(); X#if defined(BSD4_2) || defined(BSD4_1C) X int tpgrp; X#else BSD4_1 X short tpgrp; X#endif BSD4_1 X. X1177d X1172,1174d X1168,1169c X else if (strcmp(bfr, groupdir) != 0) { X sprintf(linebuf, "Newsgroups: %s", bfr); X tfappend(linebuf); X timer(); X } X. X1119a X } X. X1117,1118c X if (hp->organization[0]) { X sprintf(linebuf, "Organization: %s", hp->organization); X tfappend(linebuf); X. X849c X sprintf(rcbuf, "%s -t < %s; rm -f %s", MAILPARSER, tf, tf); X. X255c X if (prflags&HDRONLY || maxlinno == 0) X. X6c Xstatic char *SccsId = "@(#)visual.c 1.15 9/18/84"; X. Xw Xq X-*-END-*- *-*-END-of-diff-e-*-* exit