Package: doc-rfc-std
Version: 20030621-1

I've made a little script 'rfc' that should make RFC viewing easier.
Would you mind to add it to doc-rfc-std package?

#!/bin/sh
# Copyright (c) 2005 Matus UHLAR - fantomas <[EMAIL PROTECTED]>
# This code is hereby licensed for public consumption under the
# GNU GPL v2 or greater
#
# Usage: rfc  [ index | number ] [ ... ]
# accepts pure numbers or keyword "index", latter one displays RFC index.
# without parameters displays just the RFC index 

cd /usr/share/doc/RFC/links

if [ $# = 0 ]
then
        rfcs="/usr/doc/RFC/rfc-index.txt.gz"
else
        for rfc in "$@"
        do
                if [ "$rfc" = "index" ]
                then
                        rfcs="$rfcs ../rfc-index.txt.gz"
                elif [ ! -f "rfc$rfc.txt.gz" ]
                then
                        echo "RFC $rfc is not available/installed."
                else
                        rfcs="$rfcs rfc$rfc.txt.gz"
                fi
        done

        if [ ! "$rfcs" ]
        then
                exit 1
        fi
fi

if [ "$PAGER" = less ]
then
        zless $rfcs
else
        zmore $rfcs
fi

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to