#!/bin/sh # -*- sh -*- see more @ http://www.geocities.com/tsca.geo/slang.html function backup { cp -f $NEWSRC $NEWSRC.bak } function runslrn { /usr/bin/slrn -C -i ~/$SLRNRC $OPCJA $SERWER -f $NEWSRC } function info { echo "Serwer name : $SERWER" echo ".newsrc file: $NEWSRC" echo ".slrnrc file: $SLRNRC" } case "$1" in "spool") SERWER=" " NEWSRC=".newsrc" SLRNRC=".slrnrc.spool" OPCJA="--spool" ;; "pl") SERWER="news.mat.uni.torun.pl" NEWSRC=".newsrc-mat.uni.torun.pl" SLRNRC=".slrnrc" OPCJA="-h" ;; "teledk") SERWER="news.inet.tele.dk" NEWSRC=".newsrc-tele.dk" SLRNRC=".slrnrc" OPCJA="-n -h" ;; "inn") SERWER="127.0.0.1" NEWSRC=".newsrc-inn" SLRNRC=".slrnrc" OPCJA="-n -h" ;; *) echo 'Usage: nwo [pl|inn|teledk|spool]' exit esac info backup runslrn