Annotation of 43BSD/contrib/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.18    3/19/86'
        !             4: LIBDIR=$1
        !             5: SPOOLDIR=$2
        !             6: NEWSUSR=$3
        !             7: NEWSGRP=$4
        !             8: cat <<"E_O_F" > /tmp/$$groups
        !             9: net.abortion           All sorts of discussions on abortion.
        !            10: net.ai                 Artificial intelligence discussions.
        !            11: net.analog             Analog design developments, ideas, and components.
        !            12: net.announce           Moderated, general announcements of interest to all.
        !            13: net.announce.newusers  Moderated, explanatory postings for new users.
        !            14: net.announce.arpa-internet     Announcements from the Arpa world
        !            15: net.arch               Computer architecture.
        !            16: net.astro              Astronomy discussions and information.
        !            17: net.astro.expert       Discussion by experts in astronomy.
        !            18: net.audio              High fidelity audio.
        !            19: net.auto               Automobiles, automotive products and laws.
        !            20: net.auto.tech          Technical aspects of automobiles, et. al.
        !            21: net.aviation           Aviation rules, means, and methods.
        !            22: net.bicycle            Bicycles, related products and laws.
        !            23: net.bio                        Biology and related sciences.
        !            24: net.books              Books of all genres, shapes, and sizes.
        !            25: net.bugs               General bug reports and fixes.
        !            26: net.bugs.2bsd          Reports of UNIX* version 2BSD related bugs.
        !            27: net.bugs.4bsd          Reports of UNIX version 4BSD related bugs.
        !            28: net.bugs.usg           Reports of USG (System III, V, etc.) bugs.
        !            29: net.bugs.uucp          Reports of UUCP related bugs.
        !            30: net.bugs.v7            Reports of UNIX V7 related bugs.
        !            31: net.cog-eng            Cognitive engineering.
        !            32: net.college            College, college activities, campus life, etc.
        !            33: net.columbia           The space shuttle and the STS program.
        !            34: net.comics             The funnies, old and new.
        !            35: net.consumers          Consumer interests, product reviews, etc.
        !            36: net.cooks              Food, cooking, cookbooks, and recipes.
        !            37: net.crypt              Different methods of data en/decryption.
        !            38: net.cse                        Computer science education.
        !            39: net.cycle              Motorcycles and related products and laws.
        !            40: net.database           Database and data management issues and theory.
        !            41: net.dcom               Data communications hardware and software.
        !            42: net.decus              DEC* Users' Society newsgroup.
        !            43: net.emacs              EMACS editors of different flavors.
        !            44: net.eunice             The SRI Eunice system.
        !            45: net.followup           Followups to articles in net.general.
        !            46: net.games              Games and computer games.
        !            47: net.games.board                Discussion and hints on board games.
        !            48: net.games.chess                Chess & computer chess.
        !            49: net.games.emp          Discussion and hints about Empire.
        !            50: net.games.frp          Discussion about Fantasy Role Playing games.
        !            51: net.games.go           Discussion about Go.
        !            52: net.games.hack         Discussion, hints, etc. about the Hack game.
        !            53: net.games.pbm          Discussion about Play by Mail games.
        !            54: net.games.rogue                Discussion and hints about Rogue.
        !            55: net.games.trivia       Discussion about trivia.
        !            56: net.games.video                Discussion about video games.
        !            57: net.garden             Gardening, methods and results.
        !            58: net.general            *Important*, timely announcements of worldwide interest.
        !            59: net.graphics           Computer graphics, art, animation, image processing,
        !            60: net.ham-radio          Amateur Radio practices, contests, events, rules, etc.
        !            61: net.ham-radio.packet   Discussion about packet radio setups.
        !            62: net.info-terms         All sorts of terminals.
        !            63: net.internat           Discussion about international standards
        !            64: net.invest             Investments and the handling of money.
        !            65: net.jobs               Job announcements, requests, etc.
        !            66: net.jokes              Jokes and the like.  May be somewhat offensive.
        !            67: net.jokes.d            Discussions on the content of net.jokes articles
        !            68: net.kids               Children, their behavior and activities.
        !            69: net.lan                        Local area network hardware and software.
        !            70: net.lang               Different computer languages.
        !            71: net.lang.ada           Discussion about Ada*.
        !            72: net.lang.apl           Discussion about APL.
        !            73: net.lang.c             Discussion about C.
        !            74: net.lang.c++           The object-oriented C++ language.
        !            75: net.lang.f77           Discussion about FORTRAN.
        !            76: net.lang.forth         Discussion about Forth.
        !            77: net.lang.lisp          Discussion about LISP.
        !            78: net.lang.mod2          Discussion about Modula-2.
        !            79: net.lang.pascal                Discussion about Pascal.
        !            80: net.lang.prolog                Discussion about PROLOG.
        !            81: net.lang.st80          Discussion about Smalltalk 80.
        !            82: net.legal              Legalities and the ethics of law.
        !            83: net.lsi                        Large scale integrated circuits.
        !            84: net.mag                        Magazine summaries, tables of contents, etc.
        !            85: net.mail               Proposed new mail/network standards.
        !            86: net.mail.headers       Gatewayed from the ARPA header-people list.
        !            87: net.math               Mathematical discussions and puzzles.
        !            88: net.math.stat          Statistics discussion.
        !            89: net.math.symbolic      Symbolic algebra discussion.
        !            90: net.med                        Medicine and its related products and regulations.
        !            91: net.micro              Micro computers of all kinds.
        !            92: net.micro.16k          National Semiconductor 32000 series chips
        !            93: net.micro.6809         Discussion about 6809's.
        !            94: net.micro.68k          Discussion about 68k's.
        !            95: net.micro.apple                Discussion about Apple micros.
        !            96: net.micro.amiga                Talk about the new Amiga micro.
        !            97: net.micro.atari8       Discussion about 8 bit Atari micros.
        !            98: net.micro.atari16      Discussion about 16 bit Atari micros.
        !            99: net.micro.att          Discussions about AT&T microcomputers 
        !           100: net.micro.cbm          Discussion about Commodore micros.
        !           101: net.micro.cpm          Discussion about the CP/M operating system.
        !           102: net.micro.hp           Discussion about Hewlett/Packard's.
        !           103: net.micro.mac          Material about the Apple Macintosh & Lisa
        !           104: net.micro.pc           Discussion about IBM personal computers.
        !           105: net.micro.ti           Discussion about Texas Instruments.
        !           106: net.micro.trs-80       Discussion about TRS-80's.
        !           107: net.misc               Various discussions too short-lived for other groups.
        !           108: net.motss              Issues pertaining to homosexuality.
        !           109: net.movies             Reviews and discussions of movies.
        !           110: net.music              Music lovers' group.
        !           111: net.music.classical    Discussion about classical music.
        !           112: net.music.folk         Folks discussing folk music of various sorts
        !           113: net.music.gdead                A group for (Grateful) Dead-heads
        !           114: net.music.synth                Synthesizers and computer music
        !           115: net.net-people         Announcements, requests, etc. about people on the net.
        !           116: net.news               Discussions of USENET itself.
        !           117: net.news.adm           Comments directed to news administrators.
        !           118: net.news.b             Discussion about B news software.
        !           119: net.news.config                Postings of system down times and interruptions.
        !           120: net.news.group         Discussions and lists of newsgroups
        !           121: net.news.newsite       Postings of new site announcements.
        !           122: net.news.notes         Notesfile software from the Univ. of Illinois.
        !           123: net.news.sa            Comments directed to system administrators.
        !           124: net.news.stargate      Discussion about satellite transmission of news.
        !           125: net.nlang              Natural languages, cultures, heritages, etc.
        !           126: net.nlang.africa       Discussions about Africa & things African
        !           127: net.nlang.celts                Group about Celtics.
        !           128: net.nlang.greek                Group about Greeks.
        !           129: net.nlang.india                Group for discussion about India & things Indian
        !           130: net.origins            Evolution versus creationism (sometimes hot!).
        !           131: net.periphs            Peripheral devices.
        !           132: net.pets               Pets, pet care, and household animals in general.
        !           133: net.philosophy         Philosophical discussions.
        !           134: net.physics            Physical laws, properties, etc.
        !           135: net.poems              For the posting of poems.
        !           136: net.politics           Political discussions.  Could get hot.
        !           137: net.politics.theory    Theory of politics and political systems.
        !           138: net.puzzle             Puzzles, problems, and quizzes.
        !           139: net.railroad           Real and model train fans' newsgroup.
        !           140: net.rec                        Recreational/participant sports.
        !           141: net.rec.birds          Hobbyists interested in bird watching.
        !           142: net.rec.boat           Hobbyists interested in boating.
        !           143: net.rec.bridge         Hobbyists interested in bridge.
        !           144: net.rec.nude           Hobbyists interested in naturist/nudist activities.
        !           145: net.rec.photo          Hobbyists interested in photography.
        !           146: net.rec.scuba          Hobbyists interested in SCUBA diving.
        !           147: net.rec.ski            Hobbyists interested in skiing.
        !           148: net.rec.skydive                Hobbyists interested in skydiving.
        !           149: net.rec.wood           Hobbyists interested in woodworking.
        !           150: net.religion           Religious, ethical, and moral implications of actions.
        !           151: net.religion.christian Discussion about form and nature of Christianity
        !           152: net.religion.jewish    Information and discussion about Judaism.
        !           153: net.research           Research and computer research.
        !           154: net.roots              Genealogical matters.
        !           155: net.rumor              For the posting of rumors.
        !           156: net.sci                        General purpose scientific discussions.
        !           157: net.sf-lovers          Science fiction lovers' newsgroup.
        !           158: net.singles            Newsgroup for single people, their activities, etc.
        !           159: net.social             Like net.singles, but for everyone.
        !           160: net.sources            For the posting of software packages & documentation.
        !           161: net.sources.bugs       For bug fixes and features discussion
        !           162: net.sources.d          For followup discussion on net.sources postings.
        !           163: net.sources.games      Postings of recreational software
        !           164: net.sources.mac                Software for the Apple Macintosh
        !           165: net.space              Space, space programs, space related research, etc.
        !           166: net.sport              Spectator sports.
        !           167: net.sport.baseball     Discussion about baseball.
        !           168: net.sport.football     Discussion about football.
        !           169: net.sport.hockey       Discussion about hockey.
        !           170: net.sport.hoops                Discussion about basketball.
        !           171: net.startrek           Star Trek, the TV show and the movies.
        !           172: net.suicide            Suicide, laws, ethics, and its causes and effects (!).
        !           173: net.taxes              Tax laws and advice.
        !           174: net.test               For testing of network software.  Very boring.
        !           175: net.text               Text processing.
        !           176: net.travel             Traveling all over the world.
        !           177: net.tv                 The boob tube, its history, and past and current shows.
        !           178: net.tv.drwho           Discussion about Dr. Who.
        !           179: net.tv.soaps           Postings about soap operas.
        !           180: net.unix               UNIX neophytes group.
        !           181: net.unix-wizards       Discussions, bug reports, and fixes on and for UNIX.
        !           182: net.usenix             USENIX Association events and announcements.
        !           183: net.veg                        Vegetarians.
        !           184: net.video              Video and video components.
        !           185: net.wanted             Requests for things that are needed.
        !           186: net.wanted.sources     Requests for software, termcap entries, etc.
        !           187: net.wines              Wines and spirits.
        !           188: net.wobegon            "A Prairie Home Companion" radio show discussion.
        !           189: net.women              Women's rights, discrimination, etc.
        !           190: net.works              Assorted workstations.
        !           191: mod.ai                 Discussions about Artificial Intelligence
        !           192: mod.compilers          Discussion about compiler construction, theory, etc.
        !           193: mod.computers          Discussion about various computers and related.
        !           194: mod.computers.apollo           Apollo computer systems.
        !           195: mod.computers.ibm-pc           The IBM PC, PC-XT, and PC-AT.
        !           196: mod.computers.laser-printers   Laser printers, hardware and software.
        !           197: mod.computers.pyramid          Pyramid 90x computers.
        !           198: mod.computers.ridge            Ridge 32 computers and ROS.
        !           199: mod.computers.sequent          Sequent systems, (esp. Balance 8000).
        !           200: mod.computers.sun              Sun "workstation" computers
        !           201: mod.computers.vax              DEC's VAX* line of computers & VMS.
        !           202: mod.computers.workstations     Various workstation-type computers.
        !           203: mod.graphics           Graphics software, hardware, theory, etc.
        !           204: mod.human-nets         Computer aided communications digest.
        !           205: mod.legal              Discussions of computers and the law.
        !           206: mod.mac                        Apple Macintosh micros -- info, uses, but no programs.
        !           207: mod.mac.binaries       Encoded public domain programs in binary form.
        !           208: mod.mac.sources                Public domain software in source code format.
        !           209: mod.map                        Various maps, including UUCP maps
        !           210: mod.motss              Moderated newsgroup on gay issues and topics
        !           211: mod.movies             Moderated reviews and discussion of movies
        !           212: mod.music              Moderated reviews and discussion of things musical
        !           213: mod.newprod            Announcements of new products of interest to readers
        !           214: mod.newslists          Postings of news-related statistics and lists
        !           215: mod.os                 Disussions about operating systems and related areas.
        !           216: mod.os.os9             Discussions about the os9 operating system.
        !           217: mod.os.unix            Moderated discussion of UNIX* features and bugs.
        !           218: mod.politics           Discussions on political problems, systems, solutions.
        !           219: mod.politics.arms-d            Arms discussion digest.
        !           220: mod.protocols          Various forms and types of FTP protocol discussions.
        !           221: mod.protocols.appletalk                Applebus hardware & software discussion.
        !           222: mod.protocols.kermit           Information about the Kermit package.
        !           223: mod.protocols.tcp-ip           TCP and IP network protocols.
        !           224: mod.rec                        Discussions on pastimes (not currently active)
        !           225: mod.rec.guns           Discussions about firearms
        !           226: mod.recipes            A "distributed cookbook" of screened recipes.
        !           227: mod.risks              Risks to the public from computers & users.
        !           228: mod.sources            Moderated postings of public-domain sources.
        !           229: mod.sources.doc                Archived public-domain documentation.
        !           230: mod.std                        Moderated discussion about various standards
        !           231: mod.std.c              Discussion about C language standards
        !           232: mod.std.mumps          Discussion for the X11.1 committee on Mumps
        !           233: mod.std.unix           Discussion for the P1003 committee on UNIX
        !           234: mod.techreports                Announcements and lists of technical reports.
        !           235: mod.telecom            Telecommunications digest.
        !           236: mod.test               Testing of moderated newsgroups -- no moderator
        !           237: mod.vlsi               Very large scale integrated circuits.
        !           238: E_O_F
        !           239: : if active file is empty, create it
        !           240: if test ! -s $LIBDIR/active
        !           241: then
        !           242:        sed 's/[        ].*/ 00000 00001/' /tmp/$$groups > $LIBDIR/active
        !           243:        cat <<'E_O_F' >>$LIBDIR/active
        !           244: control 00000 00001
        !           245: junk 00000 00001
        !           246: E_O_F
        !           247:        set - group 0 1
        !           248: else
        !           249: : make sure it is in the new format
        !           250:        set - `sed 1q $LIBDIR/active`
        !           251:        case $# in
        !           252:        3|4)    ;;
        !           253:        2)      ed - $LIBDIR/active << 'EOF'
        !           254: 1,$s/$/ 00001/
        !           255: w
        !           256: q
        !           257: EOF
        !           258:                echo
        !           259:                echo Active file updated to new format.
        !           260:                echo You must run expire immediately after this install
        !           261:                echo is done to properly update the tables.;;
        !           262:        *) echo Active file is in unrecognized format. Not upgraded.;;
        !           263:        esac
        !           264: fi
        !           265: if test $# -eq 3 -o $# -eq 2
        !           266: then
        !           267:        (sed '/^!net/!d
        !           268: s/^!//
        !           269: s!^!/!
        !           270: s!$! /s/$/ n/!
        !           271: ' $LIBDIR/ngfile
        !           272:        echo '/ n$/!s/$/ y/') >/tmp/$$sed
        !           273:        mv $LIBDIR/active $LIBDIR/oactive
        !           274:        sed -f /tmp/$$sed $LIBDIR/oactive >$LIBDIR/active
        !           275:        chown $NEWSUSR $LIBDIR/active
        !           276:        chgrp $NEWSGRP $LIBDIR/active
        !           277:        chmod 644 $LIBDIR/active
        !           278: fi
        !           279: sort /tmp/$$groups | $LIBDIR/checkgroups | tee /tmp/checkgroups.out
        !           280: echo the output of checkgroups has been copied into /tmp/checkgroups.out
        !           281: 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.