roth@macom1.UUCP (dennis paul roth) (08/21/87)
#This is my localize.xenix script. It assumes your source is up to #patchlevel 8. It is intended to work with my patch#8X just posted. #It produces a Makefile and defs.h file that works with the SCO #SYS V development system. The Makefile assumes you have a 80286 #based machine. The Makefile will have to be modified for XT class #machines and archaic releases of Xenix. rm -f Makefile cp Makefile.dst Makefile chmod u+w Makefile ed - Makefile <<'EOF' g/^# '@(#)Makefile.dst 1.23/s//# '@(#)Makefile.Xenix 1.23/ g/^# Generic Makefile./s//# Generic Xenix Makefile./ g/^# This is converted /d g/^# which should at least be a copy of localize.v7 or localize.usg/d g/^#USG /s/// g/^#V7 /d g/^#VMS /d g/^#BSD4_[123] /d g/#NOTVMS/s/#NOTVMS.*// g/^SPOOLDIR = \/usr\/spool\/news/s//SPOOLDIR = \/u\/news/ g/^UUXFLAGS = -r -z/s//UUXFLAGS =/ g/^CFLAGS = ${DEBUG} -O $(IBMFLAGS) -DUSG -Dindex=strchr -Drindex=strrchr ${DEFS} ${SCCSID} ${VFORK}/s//CFLAGS = ${DEBUG} -M2l -LARGE -DUSG -Dindex=strchr -Drindex=strrchr ${SCCSID} ${VFORK}/ g/^LFLAGS = ${DEBUG} -s -i $(IBMFLAGS)/s//LFLAGS = ${DEBUG} -M2l $(IBMFLAGS)/ g/^LINTFLAGS = ${DEFS}/s//LINTFLAGS = / g/termlib/s//curses -ltermcap/ g/^MISC = ftime.o/s//MISC = / /$(INSCOMPRESS)/d .a -rm -f $(DESTDIR)$(BINDIR)/compress $(DESTDIR)$(BINDIR)/uncompress -rm -f $(DESTDIR)$(BINDIR)/zcat ${LNRNEWS} $(DESTDIR)$(LIBDIR)/compress $(DESTDIR)$(BINDIR)/compress ${LNRNEWS} $(DESTDIR)$(LIBDIR)/compress $(DESTDIR)$(BINDIR)/uncompress ${LNRNEWS} $(DESTDIR)$(LIBDIR)/compress $(DESTDIR)$(BINDIR)/zcat . g/rm -f $(COMMANDS) $(OTHERS) \*.o a.out/s//rm -f $(COMMANDS) $(OTHERS) \*.o \*.map a.out/ g/$(CC) $(LFLAGS) $(IOBJECTS) -o inews $(LIBS)/s//$(CC) $(LFLAGS) -lx -ldbm -m inews.map -F 5000 $(IOBJECTS) -o inews $(LIBS) / g/$(CC) $(LFLAGS) $(ROBJECTS) -o readnews $(LIBS)/s//$(CC) $(LFLAGS) -lx -ldbm -m readnews.map -F 3000 $(ROBJECTS) -o readnews $(LIBS)/ g/ftime.o: ftime.c params.h defs.h header.h /d g/$(CC) $(CFLAGS) -c ftime.c/d g/$(CC) $(CFLAGS) $(LFLAGS) $(POBJECTS) -o postnews/s//$(CC) $(CFLAGS) -m postnews.map -F 8000 $(POBJECTS) -o postnews/ g/$(CC) $(LFLAGS) $(VOBJECTS) $(TERMLIB) $(LIBS) -o /s// $(CC) $(LFLAGS) -lx -ldbm -F 5000 -m vnews.map $(VOBJECTS) $(TERMLIB) -o / g/$(CC) $(CFLAGS) -c visual.c/a\ \ virtterm.o: virtterm.c rparams.h defs.h params.h ndir.h header.h Makefile\ $(CC) $(CFLAGS) -c virtterm.c g/$(CC) $(CFLAGS) $(LFLAGS) uurec.c -o uurec/s//$(CC) $(CFLAGS) -m uurec.map -F 8000 uurec.c -o uurec/ g/$(CC) $(CFLAGS) $(LFLAGS) recnews.c -o recnews/s//$(CC) $(CFLAGS) -m recnews.map -F 8000 recnews.c -o recnews/ g/$(CC) $(LFLAGS) sendnews.o -o sendnews/s//$(CC) $(CFLAGS) -m sendnews.map -F 8000 sendnews.o -o sendnews/ g/$(CC) $(CFLAGS) $(LFLAGS) batch.c -o batch/s//$(CC) $(CFLAGS) -m batch.map -F 8000 batch.c -o batch/ g/$(CC) $(CFLAGS) $(LFLAGS) unbatch.c -o unbatch/s//$(CC) $(CFLAGS) -m unbatch.map -F 8000 unbatch.c -o unbatch/ g/$(CC) $(CFLAGS) $(LFLAGS) encode.c -o encode/s//$(CC) $(CFLAGS) -m encode.map -F 8000 encode.c -o encode/ g/$(CC) $(CFLAGS) $(LFLAGS) decode.c -o decode/s//$(CC) $(CFLAGS) -m decode.map -F 8000 decode.c -o decode/ g/$(CC) $(CFLAGS) $(LFLAGS) caesar.c -o caesar -lm/s//$(CC) $(CFLAGS) -m caesar.map -F 8000 caesar.c -o caesar -lm/ g/$(CC) $(CFLAGS) $(LFLAGS) -o compress compress.c/s//$(CC) $(CFLAGS) -DM_XENIX -m compress.map -F E000 -o compress compress.c/ g/$(CC) $(CFLAGS) $(LFLAGS) recmail.c -o recmail/s//$(CC) $(CFLAGS) -DMAILER=\\"\/usr\/bin\/mail\\" -m recmail.map -F 8000 recmail.c -o recmail/ g/$(CC) $(LFLAGS) checknews.o process.o cpathinit.o rextern.o -o checknews/s//$(CC) $(LFLAGS) -m checknews.map -F E000 checknews.o process.o cpathinit.o rextern.o -o checknews/ g/$(CC) $(LFLAGS) -o expire $(EXPOBJS) $(LIBS)/s//$(CC) $(LFLAGS) -ldbm -lx -m expire.map -F A000 -o expire $(EXPOBJS) $(LIBS)/ w q EOF rm -f defs.h cp defs.dist defs.h chmod u+w defs.h ed - defs.h <<'EOF' g/dist 2.58 4\/10\/87 \*\//s//dist 2.58 4\/10\/87 Xenix version 8\/23\/87 *\// g/^#define ROOTID 10 /s//#define ROOTID 201/ g/^#define N_UMASK 000/s//#define N_UMASK 002/ g/#define TMAIL/s//\/\* #define TMAIL/ g/\/usr\/ucb\/more/s//\/usr\/bin\/more/ g/uux - -r -z/s//uux - / g/#define UXMIT/s//\/\* #define UXMIT/ g/#define MANUALLY/s//\/\* #define MANUALLY/ g/\/\* #define INTERNET/s//#define INTERNET/ g/\/\* #define UNAME/s//#define UNAME/ g/uucpname/s//systemid/ g/\/\* #define DOXREFS/s//#define DOXREFS/ g/\/\* #define LOCKF/s//#define LOCKF/ g/Frobozz Inc., St. Louis/s//Your organization name here/ g/\/\* #define NICENESS/s//#define NICENESS/ g/LNCNT 14/s//LNCNT 19/ $a /* defs moved out of makefile $(DEFS) must agree with values in Makefile */ #define RNEWS "/usr/bin/rnews" #define SPOOLDIR "/u/news" #define BATCHDIR "/usr/spool/batch" #define LIBDIR "/usr/lib/news" #define BINDIR "/usr/bin" #define NEWSUSR "news" #define NEWSGRP "news" /* Lets use the DBM(S) package */ #define DBM #include <dbm.h> . w q EOF -- Dennis Roth @ CENTEL Information Systems, Inc. 5515 Security Lane, Rockville, Maryland, 20852, (301) 984-3636 uucp: {decuac, grebyn}!macom1!roth internet: macom1!roth@{ decuac.DEC.COM, seismo.CSS.GOV } backdoor: grebyn!macom1!roth@umd5.umd.edu