Annotation of 43BSDTahoe/new/news/src/makeactive.sh, revision 1.1

1.1     ! root        1: : "Create active file and newsgroup hierarchy for new machine"
        !             2: : "Usage: sh makeactive.sh LIBDIR SPOOLDIR NEWSUSR NEWSGRP"
        !             3: : '@(#)makeactive      1.24    9/24/87'
        !             4: LIBDIR=$1
        !             5: SPOOLDIR=$2
        !             6: NEWSUSR=$3
        !             7: NEWSGRP=$4
        !             8: cat <<"E_O_F" | sort > /tmp/$$groups
        !             9: general        Articles that should be read by everyone on your local system
        !            10: comp.ai                        Artificial intelligence discussions.
        !            11: comp.ai.digest         Artificial Intelligence discussions. (Moderated)
        !            12: comp.arch              Computer architecture.
        !            13: comp.binaries.amiga    Encoded public domain programs in binary. (Moderated)
        !            14: comp.binaries.atari.st Binary-only postings for the Atari ST. (Moderated)
        !            15: comp.binaries.ibm.pc   Binary-only postings for IBM PC/MS-DOS. (Moderated)
        !            16: comp.binaries.mac      Encoded Macintosh programs in binary. (Moderated)
        !            17: comp.bugs.2bsd         Reports of UNIX* version 2BSD related bugs.
        !            18: comp.bugs.4bsd         Reports of UNIX version 4BSD related bugs.
        !            19: comp.bugs.4bsd.ucb-fixes       Bug reports/fixes for BSD Unix. (Moderated)
        !            20: comp.bugs.misc         General UNIX bug reports and fixes (incl V7, uucp)
        !            21: comp.bugs.sys5         Reports of USG (System III, V, etc.) bugs.
        !            22: comp.cog-eng           Cognitive engineering.
        !            23: comp.compilers         Compiler construction, theory, etc. (Moderated)
        !            24: comp.databases         Database and data management issues and theory.
        !            25: comp.dcom.lans         Local area network hardware and software.
        !            26: comp.dcom.modems       Data communications hardware and software.
        !            27: comp.dcom.telecom      Telecommunications digest. (Moderated)
        !            28: comp.doc               Archived public-domain documentation. (Moderated)
        !            29: comp.doc.techreports   Lists of technical reports. (Moderated)
        !            30: comp.edu               Computer science education.
        !            31: comp.emacs             EMACS editors of different flavors.
        !            32: comp.graphics          Computer graphics, art, animation, image processing.
        !            33: comp.graphics.digest   Graphics software, hardware, theory, etc. (Moderated)
        !            34: comp.hypercube         Massively parallel systems: hardware & software. (Moderated)
        !            35: comp.lang.ada          Discussion about Ada*.
        !            36: comp.lang.apl          Discussion about APL.
        !            37: comp.lang.c            Discussion about C.
        !            38: comp.lang.c++          The object-oriented C++ language.
        !            39: comp.lang.forth                Discussion about Forth.
        !            40: comp.lang.fortran      Discussion about FORTRAN.
        !            41: comp.lang.lisp         Discussion about LISP.
        !            42: comp.lang.misc         Different computer languages not specifically listed.
        !            43: comp.lang.modula2      Discussion about Modula-2.
        !            44: comp.lang.pascal       Discussion about Pascal.
        !            45: comp.lang.prolog       Discussion about PROLOG.
        !            46: comp.lang.smalltalk    Discussion about Smalltalk 80.
        !            47: comp.laser-printers    Laser printers, hardware & software. (Moderated)
        !            48: comp.lsi               Large scale integrated circuits.
        !            49: comp.mail.elm          Discussion and fixes for ELM mail system.
        !            50: comp.mail.headers      Gatewayed from the ARPA header-people list.
        !            51: comp.mail.maps         Various maps, including UUCP maps. (Moderated)
        !            52: comp.mail.misc         General discussions about computer mail.
        !            53: comp.mail.uucp         Mail in the uucp network environment.
        !            54: comp.misc              General topics about computers not covered elsewhere.
        !            55: comp.newprod           Announcements of new products of interest. (Moderated)
        !            56: comp.org.decus         DEC* Users' Society newsgroup.
        !            57: comp.org.fidonet       FidoNews digest, official news of FidoNet Assoc. (Moderated)
        !            58: comp.org.usenix                USENIX Association events and announcements.
        !            59: comp.os.cpm            Discussion about the CP/M operating system.
        !            60: comp.os.eunice         The SRI Eunice system.
        !            61: comp.os.minix          Discussion of Tanenbaum's MINIX system.
        !            62: comp.os.misc           General OS-oriented discussion not carried elsewhere.
        !            63: comp.os.os9            Discussions about the os9 operating system. (Moderated)
        !            64: comp.os.research       Operating systems and related areas. (Moderated)
        !            65: comp.os.vms            DEC's VAX* line of computers & VMS.
        !            66: comp.periphs           Peripheral devices.
        !            67: comp.protocols.appletalk       Applebus hardware & software.
        !            68: comp.protocols.kermit  Info about the Kermit package. (Moderated)
        !            69: comp.protocols.misc    Various forms and types of FTP protocol.
        !            70: comp.protocols.tcp-ip  TCP and IP network protocols.
        !            71: comp.risks             Risks to the public from computers & users. (Moderated)
        !            72: comp.society           The impact of technology on society. (Moderated)
        !            73: comp.sources.amiga     Source code-only postings for the Amiga. (Moderated)
        !            74: comp.sources.atari.st  Source code-only postings for the Atari ST. (Moderated)
        !            75: comp.sources.bugs      Bug reports, fixes, discussion for posted sources
        !            76: comp.sources.d         For any discussion of source postings.
        !            77: comp.sources.games     Postings of recreational software. (Moderated)
        !            78: comp.sources.mac       Software for the Apple Macintosh. (Moderated)
        !            79: comp.sources.misc      Posting of software . (Moderated)
        !            80: comp.sources.unix      Postings of public-domain sources. (Moderated)
        !            81: comp.sources.wanted    Requests for software and fixes.
        !            82: comp.std.c             Discussion about C language standards. (Moderated)
        !            83: comp.std.internat      Discussion about international standards.
        !            84: comp.std.misc          Discussion about various standards. (Moderated)
        !            85: comp.std.mumps         Discussion for the X11.1 committee on Mumps. (Moderated)
        !            86: comp.std.unix          Discussion for the P1003 committee on UNIX. (Moderated)
        !            87: comp.sys.amiga         Commodore Amiga: info&uses, but no programs.
        !            88: comp.sys.apollo                Apollo computer systems.
        !            89: comp.sys.apple         Discussion about Apple micros.
        !            90: comp.sys.atari.8bit    Discussion about 8 bit Atari micros.
        !            91: comp.sys.atari.st      Discussion about 16 bit Atari micros.
        !            92: comp.sys.att           Discussions about AT&T microcomputers.
        !            93: comp.sys.cbm           Discussion about Commodore micros.
        !            94: comp.sys.dec           Discussions about DEC computer systems.
        !            95: comp.sys.hp            Discussion about Hewlett-Packard equipment.
        !            96: comp.sys.ibm.pc                Discussion about IBM personal computers.
        !            97: comp.sys.ibm.pc.digest The IBM PC, PC-XT, and PC-AT. (Moderated)
        !            98: comp.sys.intel         Disucussions about Intel systems and parts.
        !            99: comp.sys.m6809         Discussion about 6809's.
        !           100: comp.sys.m68k          Discussion about 68k's.
        !           101: comp.sys.m68k.pc       Discussion about 68k-based PCs. (Moderated)
        !           102: comp.sys.mac           Discussions about the Apple Macintosh & Lisa.
        !           103: comp.sys.mac.digest    Apple Macintosh: info&uses, but no programs. (Moderated)
        !           104: comp.sys.masscomp      The Masscomp line of computers. (Moderated)
        !           105: comp.sys.misc          Discussion about computers of all kinds.
        !           106: comp.sys.nsc.32k       National Semiconductor 32000 series chips.
        !           107: comp.sys.pyramid       Pyramid 90x computers.
        !           108: comp.sys.ridge         Ridge 32 computers and ROS. 
        !           109: comp.sys.sequent       Sequent systems, (esp. Balance 8000). (Moderated)
        !           110: comp.sys.sun           Sun "workstation" computers. (Moderated)
        !           111: comp.sys.tandy         Discussion about TRS-80's.
        !           112: comp.sys.ti            Discussion about Texas Instruments.
        !           113: comp.sys.workstations  Various workstation-type computers. (Moderated)
        !           114: comp.terminals         All sorts of terminals.
        !           115: comp.text              Text processing issues and methods.
        !           116: comp.text.desktop      Technolgy & techniques of desktop publishing. (Moderated)
        !           117: comp.unix              Discussion of UNIX* features and bugs. (Moderated)
        !           118: comp.unix.questions    UNIX neophytes group.
        !           119: comp.unix.wizards      Discussions, bug reports, and fixes on and for UNIX.
        !           120: comp.unix.xenix                Discussion about the Xenix OS.
        !           121: comp.windows.misc      Various issues about windowing systems.
        !           122: comp.windows.news      Sun Microsystems' NewS window system.
        !           123: comp.windows.x         Discussion about the X Window System.
        !           124: misc.consumers         Consumer interests, product reviews, etc.
        !           125: misc.consumers.house   Discussion about owning and maintaining a house.
        !           126: misc.forsale           Short, tasteful postings about items for sale.
        !           127: misc.handicap          Items of interest for/about the handicapped. (Moderated)
        !           128: misc.headlines         Current interest: drug testing, terrorism, etc.
        !           129: misc.invest            Investments and the handling of money.
        !           130: misc.jobs.misc         Discussion about employment, workplaces, careers.
        !           131: misc.jobs.offered      Announcements of positions available.
        !           132: misc.jobs.resumes      Postings of resumes and "situation wanted" articles.
        !           133: misc.kids              Children, their behavior and activities.
        !           134: misc.legal             Legalities and the ethics of law.
        !           135: misc.misc              Various discussions not fitting in any other group.
        !           136: misc.psi               Paranormal abilities and experiences. (Moderated)
        !           137: misc.taxes             Tax laws and advice.
        !           138: misc.test              For testing of network software.  Very boring.
        !           139: misc.wanted            Requests for things that are needed (NOT software).
        !           140: news.admin             Comments directed to news administrators.
        !           141: news.announce.conferences      Calls for papers and conference announcements. (Moderated)
        !           142: news.announce.important        General announcements of interest to all. (Moderated)
        !           143: news.announce.newusers Explanatory postings for new users. (Moderated)
        !           144: news.config            Postings of system down times and interruptions.
        !           145: news.groups            Discussions and lists of newsgroups.
        !           146: news.lists             News-related statistics and lists. (Moderated)
        !           147: news.misc              Discussions of USENET itself.
        !           148: news.newsites          Postings of new site announcements.
        !           149: news.software.b                Discussion about B news software.
        !           150: news.software.notes    Notesfile software from the Univ. of Illinois.
        !           151: news.stargate          Discussion about satellite transmission of news.
        !           152: news.sysadmin          Comments directed to system administrators.
        !           153: rec.arts.books         Books of all genres, shapes, and sizes.
        !           154: rec.arts.comics                The funnies, old and new.
        !           155: rec.arts.drwho         Discussion about Dr. Who.
        !           156: rec.arts.movies                Discussions of movies and movie making.
        !           157: rec.arts.movies.reviews        Reviews of movies. (Moderated)
        !           158: rec.arts.poems         For the posting of poems.
        !           159: rec.arts.sf-lovers     Science fiction lovers' newsgroup.
        !           160: rec.arts.startrek      Star Trek, the TV show and the movies.
        !           161: rec.arts.tv            The boob tube, its history, and past and current shows.
        !           162: rec.arts.tv.soaps      Postings about soap operas.
        !           163: rec.arts.wobegon       "A Prairie Home Companion" radio show discussion.
        !           164: rec.audio              High fidelity audio.
        !           165: rec.autos              Automobiles, automotive products and laws.
        !           166: rec.autos.tech         Technical aspects of automobiles, et. al.
        !           167: rec.aviation           Aviation rules, means, and methods.
        !           168: rec.bicycles           Bicycles, related products and laws.
        !           169: rec.birds              Hobbyists interested in bird watching.
        !           170: rec.boats              Hobbyists interested in boating.
        !           171: rec.food.cooking       Food, cooking, cookbooks, and recipes.
        !           172: rec.food.drink         Wines and spirits.
        !           173: rec.food.recipes       Recipes from the USENET Cookbook (troff & text). (Moderated)
        !           174: rec.food.veg           Vegetarians.
        !           175: rec.games.board                Discussion and hints on board games.
        !           176: rec.games.bridge       Hobbyists interested in bridge.
        !           177: rec.games.chess                Chess & computer chess.
        !           178: rec.games.empire       Discussion and hints about Empire.
        !           179: rec.games.frp          Discussion about Fantasy Role Playing games.
        !           180: rec.games.go           Discussion about Go.
        !           181: rec.games.hack         Discussion, hints, etc. about the Hack game.
        !           182: rec.games.misc         Games and computer games.
        !           183: rec.games.pbm          Discussion about Play by Mail games.
        !           184: rec.games.rogue                Discussion and hints about Rogue.
        !           185: rec.games.trivia       Discussion about trivia.
        !           186: rec.games.video                Discussion about video games.
        !           187: rec.gardens            Gardening, methods and results.
        !           188: rec.guns               Discussions about firearms. (Moderated)
        !           189: rec.ham-radio          Amateur Radio practices, contests, events, rules, etc.
        !           190: rec.ham-radio.packet   Discussion about packet radio setups.
        !           191: rec.humor              Jokes and the like.  May be somewhat offensive.
        !           192: rec.humor.d            Discussions on the content of rec.humor articles.
        !           193: rec.humor.spc          The Stupid People's Court! (Moderated)
        !           194: rec.mag                        Magazine summaries, tables of contents, etc.
        !           195: rec.mag.otherrealms    Edited science fiction & fantasy "magazine". (Moderated)
        !           196: rec.misc               General topics about recreational/participant sports.
        !           197: rec.motorcycles                Motorcycles and related products and laws.
        !           198: rec.music.classical    Discussion about classical music.
        !           199: rec.music.folk         Folks discussing folk music of various sorts.
        !           200: rec.music.gaffa                Progressive music (e.g., Kate Bush). (Moderated)
        !           201: rec.music.gdead                A group for (Grateful) Dead-heads.
        !           202: rec.music.makers       For performers and their discussions.
        !           203: rec.music.misc         Music lovers' group.
        !           204: rec.music.synth                Synthesizers and computer music.
        !           205: rec.nude               Hobbyists interested in naturist/nudist activities.
        !           206: rec.pets               Pets, pet care, and household animals in general.
        !           207: rec.photo              Hobbyists interested in photography.
        !           208: rec.puzzles            Puzzles, problems, and quizzes.
        !           209: rec.railroad           Real and model train fans' newsgroup.
        !           210: rec.scuba              Hobbyists interested in SCUBA diving.
        !           211: rec.skiing             Hobbyists interested in skiing.
        !           212: rec.skydiving          Hobbyists interested in skydiving.
        !           213: rec.sport.baseball     Discussion about baseball.
        !           214: rec.sport.basketball   Discussion about basketball.
        !           215: rec.sport.football     Discussion about football.
        !           216: rec.sport.hockey       Discussion about hockey.
        !           217: rec.sport.misc         Spectator sports.
        !           218: rec.travel             Traveling all over the world.
        !           219: rec.video              Video and video components.
        !           220: rec.woodworking                Hobbyists interested in woodworking.
        !           221: sci.astro              Astronomy discussions and information.
        !           222: sci.bio                        Biology and related sciences.
        !           223: sci.crypt              Different methods of data en/decryption.
        !           224: sci.electronics                Circuits, theory, electrons and discussions.
        !           225: sci.lang               Natural languages, communication, etc.
        !           226: sci.math               Mathematical discussions and pursuits.
        !           227: sci.math.stat          Statistics discussion.
        !           228: sci.math.symbolic      Symbolic algebra discussion.
        !           229: sci.med                        Medicine and its related products and regulations.
        !           230: sci.med.aids           AIDS -- treatment, consequences, etc. (Moderated)
        !           231: sci.misc               Short-lived discussions on subjects in the sciences.
        !           232: sci.philosophy.tech    Technical philosophy: math, science, logic, etc. 
        !           233: sci.physics            Physical laws, properties, etc.
        !           234: sci.research           Research methods, funding, ethics, and whatever.
        !           235: sci.space              Space, space programs, space related research, etc.
        !           236: sci.space.shuttle      The space shuttle and the STS program.
        !           237: soc.college            College, college activities, campus life, etc.
        !           238: soc.culture.african    Discussions about Africa & things African.
        !           239: soc.culture.celtic     Group about Celtics (*not* basketball!).
        !           240: soc.culture.greek      Group about Greeks.
        !           241: soc.culture.indian     Group for discussion about India & things Indian.
        !           242: soc.culture.jewish     Group for discussion about Jewish culture & religion.
        !           243: soc.culture.misc       Group for discussion about other cultures.
        !           244: soc.human-nets         Computer aided communications digest. (Moderated)
        !           245: soc.men                        Issues related to men, their problems & relationships.
        !           246: soc.misc               Socially-oriented topics not in other groups.
        !           247: soc.motss              Issues pertaining to homosexuality.
        !           248: soc.net-people         Announcements, requests, etc. about people on the net.
        !           249: soc.politics           Political problems, systems, solutions. (Moderated)
        !           250: soc.politics.arms-d    Arms discussion digest. (Moderated)
        !           251: soc.religion.christian Christianity and related topics. (Moderated)
        !           252: soc.roots              Genealogical matters.
        !           253: soc.singles            Newsgroup for single people, their activities, etc.
        !           254: soc.women              Women's rights, discrimination, etc.
        !           255: talk.abortion          All sorts of discussions and arguments on abortion.
        !           256: talk.bizarre           The unusual, bizarre, curious, and often stupid.
        !           257: talk.origins           Evolution versus creationism (sometimes hot!).
        !           258: talk.philosophy.misc   Philosophical musings on all topics.
        !           259: talk.politics.misc     Political discussions and ravings of all kinds.
        !           260: talk.politics.theory   Theory of politics and political systems.
        !           261: talk.religion.misc     Religious, ethical, & moral implications.
        !           262: talk.religion.newage   Esoteric and minority religions & philosophies.
        !           263: talk.rumors            For the posting of rumors.
        !           264: E_O_F
        !           265: : if active file is empty, create it
        !           266: if test ! -s $LIBDIR/active
        !           267: then
        !           268:        sed 's/[        ].*/ 00000 00001/' /tmp/$$groups > $LIBDIR/active
        !           269:        cat <<'E_O_F' >>$LIBDIR/active
        !           270: control 00000 00001
        !           271: junk 00000 00001
        !           272: E_O_F
        !           273:        set - group 0 1
        !           274: else
        !           275: : make sure it is in the new format
        !           276:        set - `sed 1q $LIBDIR/active`
        !           277:        case $# in
        !           278:        4)      ed - $LIBDIR/active << 'EOF'
        !           279: g/^mod\./s/y$/m/
        !           280: w
        !           281: q
        !           282: EOF
        !           283:                ;;
        !           284:        3)      ;;
        !           285:        2)      ed - $LIBDIR/active << 'EOF'
        !           286: 1,$s/$/ 00001/
        !           287: w
        !           288: q
        !           289: EOF
        !           290:                echo
        !           291:                echo Active file updated to new format.
        !           292:                echo You must run expire immediately after this install
        !           293:                echo is done to properly update the tables.;;
        !           294:        *) echo Active file is in unrecognized format. Not upgraded.;;
        !           295:        esac
        !           296: fi
        !           297: if test $# -eq 3 -o $# -eq 2
        !           298: then
        !           299:        (sed '/^!net/!d
        !           300: s/^!//
        !           301: s!^!/!
        !           302: s!$! /s/$/ n/!
        !           303: ' $LIBDIR/ngfile
        !           304:        echo '/ n$/!s/$/ y/') >/tmp/$$sed
        !           305:        mv $LIBDIR/active $LIBDIR/oactive
        !           306:        sed -f /tmp/$$sed $LIBDIR/oactive >$LIBDIR/active
        !           307:        chown $NEWSUSR $LIBDIR/active
        !           308:        chgrp $NEWSGRP $LIBDIR/active
        !           309:        chmod 644 $LIBDIR/active
        !           310: fi
        !           311: cat << EOF | cat - /tmp/$$groups | $LIBDIR/checkgroups | tee /tmp/checkgroups.out
        !           312: From: make update
        !           313: 
        !           314: EOF
        !           315: echo the output of checkgroups has been copied into /tmp/checkgroups.out
        !           316: rm -f /tmp/$$*

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.