Annotation of 43BSD/contrib/nntp/rrn/newsetup.SH, revision 1.1

1.1     ! root        1: case $CONFIG in
        !             2:     '') . config.sh ;;
        !             3: esac
        !             4: echo "Extracting newsetup (with variable substitutions)"
        !             5: $spitshell >newsetup <<!GROK!THIS!
        !             6: $startsh
        !             7: # $Header: newsetup.SH,v 4.3 85/05/01 11:43:05 lwall Exp $
        !             8: # 
        !             9: # $Log:        newsetup.SH,v $
        !            10: # Revision 4.3  85/05/01  11:43:05  lwall
        !            11: # Baseline for release with 4.3bsd.
        !            12: # 
        !            13: 
        !            14: export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh \$0; kill \$\$)
        !            15: 
        !            16: : syntax: newsetup
        !            17: 
        !            18: : System dependencies
        !            19: : You will want to change the definitions below to reflect the distribution
        !            20: : areas around you.  If you have more areas than this you will need to modify
        !            21: : the sed below.
        !            22: 
        !            23: locorg="$locpref"
        !            24: organization="$orgpref"
        !            25: city="$citypref"
        !            26: state="$statepref"
        !            27: cntry="$cntrypref"
        !            28: cont="$contpref"
        !            29: active="/tmp/active.\$\$"
        !            30: 
        !            31: dotdir="\${DOTDIR-\${HOME-\$LOGDIR}}"
        !            32: $rm -f \$dotdir/.oldnewsrc
        !            33: $echo "Creating .newsrc in \$dotdir to be used by news programs."
        !            34: 
        !            35: $rnlib/getactive \$active
        !            36: 
        !            37: : NOTE: SED WILL NOT TAKE MORE THAN 10 WFILES, SO BEWARE
        !            38: 
        !            39: $sort <\$active | $sed >/tmp/n.tmp\$\$ \\
        !            40:        -e 's/^\([^ ]*\) .*\$/\1:/'     \\
        !            41:        -e '/^control:/{'               \\
        !            42:        -e "  w /tmp/n.test\$\$"        \\
        !            43:        -e '  d'                        \\
        !            44:        -e '}'                          \\
        !            45:        -e '/^junk:/{'                  \\
        !            46:        -e "  w /tmp/n.test\$\$"        \\
        !            47:        -e '  d'                        \\
        !            48:        -e '}'                          \\
        !            49:        -e '/test:/{'                   \\
        !            50:        -e "  w /tmp/n.test\$\$"        \\
        !            51:        -e '  d'                        \\
        !            52:        -e '}'                          \\
        !            53:        -e "/^net\./{"                  \\
        !            54:        -e "  w /tmp/n.net\$\$"         \\
        !            55:        -e '  d'                        \\
        !            56:        -e '}'                          \\
        !            57:        -e "/^mod\./{"                  \\
        !            58:        -e "  w /tmp/n.mod\$\$"         \\
        !            59:        -e '  d'                        \\
        !            60:        -e '}'                          \\
        !            61:        -e "/^\$locorg\./{"             \\
        !            62:        -e "  w /tmp/n.\$locorg\$\$"    \\
        !            63:        -e '  d'                        \\
        !            64:        -e '}'                          \\
        !            65:        -e "/^\$organization\./{"       \\
        !            66:        -e "  w /tmp/n.\$organization\$\$"      \\
        !            67:        -e '  d'                        \\
        !            68:        -e '}'                          \\
        !            69:        -e "/^\$city\./{"               \\
        !            70:        -e "  w /tmp/n.\$city\$\$"      \\
        !            71:        -e '  d'                        \\
        !            72:        -e '}'                          \\
        !            73:        -e "/^\$state\./{"              \\
        !            74:        -e "  w /tmp/n.\$state\$\$"     \\
        !            75:        -e '  d'                        \\
        !            76:        -e '}'                          \\
        !            77:        -e "/^fa\./{"                   \\
        !            78:        -e "  w /tmp/n.fa\$\$"          \\
        !            79:        -e '  d'                        \\
        !            80:        -e '}'
        !            81: 
        !            82: $sed </tmp/n.tmp\$\$ >/tmp/n.local\$\$ \\
        !            83:        -e "/^\$cntry\./{"              \\
        !            84:        -e "  w /tmp/n.\$cntry\$\$"     \\
        !            85:        -e '  d'                        \\
        !            86:        -e '}'                          \\
        !            87:        -e "/^\$cont\./{"               \\
        !            88:        -e "  w /tmp/n.\$cont\$\$"      \\
        !            89:        -e '  d'                        \\
        !            90:        -e '}'                          \\
        !            91:        -e "/^to\./{"                   \\
        !            92:        -e "  w /tmp/n.to\$\$"          \\
        !            93:        -e '  d'                        \\
        !            94:        -e '}'                          \\
        !            95:        -e "/\./{"                      \\
        !            96:        -e "  w /tmp/n.misc\$\$"        \\
        !            97:        -e '  d'                        \\
        !            98:        -e '}'
        !            99: 
        !           100: 
        !           101: if $test -s \$dotdir/.newsrc ; then
        !           102:     $echo "Saving your current .newsrc as .oldnewsrc..."
        !           103:     $mv -f \$dotdir/.newsrc \$dotdir/.oldnewsrc
        !           104: fi
        !           105: 
        !           106: : newsrc order determined here
        !           107: $cat \\
        !           108:     /tmp/n.local\$\$ \\
        !           109:     /tmp/n.\$locorg\$\$ \\
        !           110:     /tmp/n.\$organization\$\$ \\
        !           111:     /tmp/n.\$city\$\$ \\
        !           112:     /tmp/n.\$state\$\$ \\
        !           113:     /tmp/n.\$cntry\$\$ \\
        !           114:     /tmp/n.\$cont\$\$ \\
        !           115:     /tmp/n.mod\$\$ \\
        !           116:     /tmp/n.net\$\$ \\
        !           117:     /tmp/n.fa\$\$ \\
        !           118:     /tmp/n.misc\$\$ \\
        !           119:     /tmp/n.test\$\$ \\
        !           120: | $uniq >\$dotdir/.newsrc
        !           121: 
        !           122: $rm -f /tmp/n.to\$\$ \\
        !           123:        /tmp/n.tmp\$\$ \\
        !           124:        /tmp/n.local\$\$ \\
        !           125:        /tmp/n.\$locorg\$\$ \\
        !           126:        /tmp/n.\$organization\$\$ \\
        !           127:        /tmp/n.\$city\$\$ \\
        !           128:        /tmp/n.\$state\$\$ \\
        !           129:        /tmp/n.\$cntry\$\$ \\
        !           130:        /tmp/n.\$cont\$\$ \\
        !           131:        /tmp/n.mod\$\$ \\
        !           132:        /tmp/n.net\$\$ \\
        !           133:        /tmp/n.fa\$\$ \\
        !           134:        /tmp/n.misc\$\$ \\
        !           135:        /tmp/n.test\$\$ \\
        !           136:        /tmp/active.\$\$
        !           137: 
        !           138: $cat <<'EOH'
        !           139: Done.
        !           140: 
        !           141: If you have never used the news system before, you may find the articles
        !           142: in net.announce.newuser to be helpful.  There is also a manual entry for rn.
        !           143: 
        !           144: To get rid of newsgroups you aren't interested in, use the 'u' command.
        !           145: Type h for help at any time while running rn.
        !           146: EOH
        !           147: !GROK!THIS!
        !           148: $eunicefix newsetup
        !           149: chmod 755 newsetup

unix.superglobalmegacorp.com

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