Path: utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!uunet!bfmny0!tneff From: tneff@bfmny0.BFM.COM (Tom Neff) Newsgroups: news.software.b Subject: Re: The Joys of C news Message-ID: <15797@bfmny0.BFM.COM> Date: 27 Aug 90 06:58:16 GMT References: <1990Aug26.074604.10583@amd.com> <1990Aug26.203259.1954@hayes.fai.alaska.edu> Reply-To: tneff@bfmny0.BFM.COM (Tom Neff) Lines: 60 In article <1990Aug26.203259.1954@hayes.fai.alaska.edu> wisner@hayes.fai.alaska.edu (Bill Wisner) writes: >Complain all you want about the lack of gloss in the C news >installation script. It's still a big improvement over B news >installation. Oh, you all remember B news, don't you? B news, with its >localize.sh file and annoying little ed script that was such a pain to >get right? Yeah, that one. Would somebody explain why B News installation is supposed to be so hard? What, exactly, is the problem? Localize.sh? It seems straightforward enough to me. Actually if anyone is terminally confused by localize.sh, it's easy enough to change it to operate using patch(1). Just run diffs on your Makefile and defs.h and stick the output into localize.sh as here-document input to 'patch'. For example ########################################################################## rm -f Makefile cp Makefile.dst Makefile chmod u+w Makefile patch -N Makefile <<'EOF' 11,12c11 < #V7 OSTYPE = v7 < #USG OSTYPE = usg --- > OSTYPE = usg 25,26c24,25 < SPOOLDIR = /usr/spool/news < BATCHDIR = /usr/spool/batch --- > SPOOLDIR = /u/spool/news > BATCHDIR = /u/spool/batch ... 395d351 < #VMS mv expire.exe expire EOF ########################################################################## rm -f defs.h cp defs.dist defs.h chmod u+w defs.h patch -N defs.h <<'EOF' 35c35 < #define ROOTID 10 /* uid of person allowed to cancel anything */ --- > #define ROOTID 505 /* uid of person allowed to cancel anything */ 38c38 < #define DFLTEXP 2*WEEKS /* default no. of seconds to expire in */ --- > #define DFLTEXP 10*DAYS /* default no. of seconds to expire in */ ... 103c103 < /* #define MINFREE 5000 /* minimum number of free blocks needed in spool*/ --- > #define MINFREE 5000 /* minimum number of free blocks needed in spool*/ EOF