Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!masscomp!ulowell!page From: page@ulowell.UUCP Newsgroups: ne.news,news.software.b Subject: How to build the 'delay' script (really 'grabheaders') Message-ID: <1085@ulowell.cs.ulowell.edu> Date: Mon, 23-Feb-87 21:00:46 EST Article-I.D.: ulowell.1085 Posted: Mon Feb 23 21:00:46 1987 Date-Received: Thu, 26-Feb-87 22:44:32 EST Reply-To: page@ulowell.UUCP (Bob Page) Distribution: world Organization: University of Lowell Lines: 51 Xref: utgpu junk:4815 news.software.b:311 Here is a Makefile to build the 'delay' script. Actually, it just builds the 'grabheaders' program which delay needs. It assumes you're using the 2.11 version of news. Change the DIST and DEST variables as appropriate for your site, then type 'make install' (it will grab the needed files out of the distribution). ..Bob -- Bob Page, U of Lowell CS Dept. ulowell!page, page@ulowell.CSNET # --- cut here --- # Makefile to build the 'grabheaders' program # (Used by the 'delay' script) # Change 'DIST' to the location of the news distribution: DIST=/usr/src/new/news # Change 'DEST' to where you want 'delay' and 'grabheaders' put DEST=/usr/local/bin CFLAGS=-O all: delay grabheaders install: delay grabheaders cp delay $(DEST); chmod 755 $(DEST)/delay cp grabheaders $(DEST); chmod 111 $(DEST)/grabheaders grabheaders: grabheaders.c getdate.c cc $(CFLAGS) -o grabheaders grabheaders.c getdate.c getdate.c: getdate.y defs.h @echo "Expect 8 shift/reduce conflicts" yacc getdate.y mv y.tab.c getdate.c grabheaders.c: cp $(DIST)/misc/grabheaders.c . getdate.y: cp $(DIST)/src/getdate.y . defs.h: cp $(DIST)/src/defs.h . delay: cp $(DIST)/misc/delay . clean: rm -f *.o getdate.c core a.out