case $CONFIG in '') . config.sh ;; esac echo "Extracting newsetup (with variable substitutions)" $spitshell >newsetup </tmp/n.tmp\$\$ \\ -e 's/^\([^ ]*\) .*\$/\1:/' \\ -e '/^control:/{' \\ -e " w /tmp/n.test\$\$" \\ -e ' d' \\ -e '}' \\ -e '/^junk:/{' \\ -e " w /tmp/n.test\$\$" \\ -e ' d' \\ -e '}' \\ -e '/test:/{' \\ -e " w /tmp/n.test\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^net\./{" \\ -e " w /tmp/n.net\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^mod\./{" \\ -e " w /tmp/n.mod\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^\$locorg\./{" \\ -e " w /tmp/n.\$locorg\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^\$organization\./{" \\ -e " w /tmp/n.\$organization\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^\$city\./{" \\ -e " w /tmp/n.\$city\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^\$state\./{" \\ -e " w /tmp/n.\$state\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^fa\./{" \\ -e " w /tmp/n.fa\$\$" \\ -e ' d' \\ -e '}' $sed /tmp/n.local\$\$ \\ -e "/^\$cntry\./{" \\ -e " w /tmp/n.\$cntry\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^\$cont\./{" \\ -e " w /tmp/n.\$cont\$\$" \\ -e ' d' \\ -e '}' \\ -e "/^to\./{" \\ -e " w /tmp/n.to\$\$" \\ -e ' d' \\ -e '}' \\ -e "/\./{" \\ -e " w /tmp/n.misc\$\$" \\ -e ' d' \\ -e '}' if $test -s \$dotdir/.newsrc ; then $echo "Saving your current .newsrc as .oldnewsrc..." $mv -f \$dotdir/.newsrc \$dotdir/.oldnewsrc fi : newsrc order determined here $cat \\ /tmp/n.local\$\$ \\ /tmp/n.\$locorg\$\$ \\ /tmp/n.\$organization\$\$ \\ /tmp/n.\$city\$\$ \\ /tmp/n.\$state\$\$ \\ /tmp/n.\$cntry\$\$ \\ /tmp/n.\$cont\$\$ \\ /tmp/n.mod\$\$ \\ /tmp/n.net\$\$ \\ /tmp/n.fa\$\$ \\ /tmp/n.misc\$\$ \\ /tmp/n.test\$\$ \\ | $uniq >\$dotdir/.newsrc $rm -f /tmp/n.to\$\$ \\ /tmp/n.tmp\$\$ \\ /tmp/n.local\$\$ \\ /tmp/n.\$locorg\$\$ \\ /tmp/n.\$organization\$\$ \\ /tmp/n.\$city\$\$ \\ /tmp/n.\$state\$\$ \\ /tmp/n.\$cntry\$\$ \\ /tmp/n.\$cont\$\$ \\ /tmp/n.mod\$\$ \\ /tmp/n.net\$\$ \\ /tmp/n.fa\$\$ \\ /tmp/n.misc\$\$ \\ /tmp/n.test\$\$ \\ /tmp/active.\$\$ $cat <<'EOH' Done. If you have never used the news system before, you may find the articles in net.announce.newuser to be helpful. There is also a manual entry for rn. To get rid of newsgroups you aren't interested in, use the 'u' command. Type h for help at any time while running rn. EOH !GROK!THIS! $eunicefix newsetup chmod 755 newsetup