# : newsetup.SH,v 4.3 85/05/01 11:43:05 lwall Exp $
# Revision 4.3 85/05/01 11:43:05 lwall
# Baseline for release with 4.3bsd.
export PATH ||
(echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh
$0; kill $$
)
: You will want to change the definitions below to reflect the distribution
: areas around you. If you have
more areas than this you will need to modify
dotdir
="${DOTDIR-${HOME-$LOGDIR}}"
echo "Creating .newsrc in $dotdir to be used by news programs."
/usr
/local
/lib
/rn
/getactive
$active
: NOTE
: SED WILL NOT TAKE MORE THAN
10 WFILES
, SO BEWARE
sort <$active |
sed >/tmp
/n.tmp$$ \
-e 's/^\([^ ]*\) .*$/\1:/' \
-e " w /tmp/n.$locorg$$" \
-e "/^$organization\./{" \
-e " w /tmp/n.$organization$$" \
-e " w /tmp/n.$state$$" \
sed </tmp
/n.tmp$$
>/tmp
/n.
local$$ \
-e " w /tmp/n.$cntry$$" \
if /bin
/test -s $dotdir/.newsrc
; then
echo "Saving your current .newsrc as .oldnewsrc..."
mv -f $dotdir/.newsrc
$dotdir/.oldnewsrc
: newsrc order determined here
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.